diff --git a/frontend/src/common/js/utils.js b/frontend/src/common/js/utils.js index aa8e351613..d5ff194858 100644 --- a/frontend/src/common/js/utils.js +++ b/frontend/src/common/js/utils.js @@ -278,7 +278,7 @@ export function exportPdf(name, canvasList) { let blankHeight = a4Height - currentHeight; if (leftHeight > blankHeight) { - if (blankHeight < 200) { + if (blankHeight < 300) { pdf.addPage(); currentHeight = 0; } @@ -292,10 +292,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);