diff --git a/frontend/src/common/js/utils.js b/frontend/src/common/js/utils.js index d2946f13e3..7046940079 100644 --- a/frontend/src/common/js/utils.js +++ b/frontend/src/common/js/utils.js @@ -271,7 +271,7 @@ export function exportPdf(name, canvasList) { let blankHeight = a4Height - currentHeight; if (leftHeight > blankHeight) { - if (blankHeight < 200) { + if (blankHeight < 300) { pdf.addPage(); currentHeight = 0; } @@ -285,10 +285,10 @@ export function exportPdf(name, canvasList) { leftHeight -= occupation; position -= occupation; //避免添加空白页 - // if (leftHeight > 0) { - // pdf.addPage(); - // currentHeight = 0; - // } + if (leftHeight > 0) { + pdf.addPage(); + currentHeight = 0; + } } } else { pdf.addImage(pageData, 'JPEG', 0, currentHeight, imgWidth, imgHeight);