diff --git a/framework/sdk-parent/frontend/src/utils/index.js b/framework/sdk-parent/frontend/src/utils/index.js index f8e6f6fc27..79d9c4f31f 100644 --- a/framework/sdk-parent/frontend/src/utils/index.js +++ b/framework/sdk-parent/frontend/src/utils/index.js @@ -168,7 +168,7 @@ export function exportPdf(name, canvasList) { let blankHeight = a4Height - currentHeight; if (leftHeight > blankHeight) { - if (blankHeight < 200) { + if (blankHeight < 300) { pdf.addPage(); currentHeight = 0; } @@ -182,10 +182,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);