We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c58a0e commit ed51494Copy full SHA for ed51494
mindee/inputs.js
@@ -143,10 +143,7 @@ class Input {
143
const splitedPdfDocument = await PDFDocument.create();
144
const pdfLength = pdfDocument.getPageCount();
145
if (pdfLength <= this.CUT_PDF_SIZE) return;
146
- const pagesNumbers = [
147
- ...Array(this.CUT_PDF_SIZE - 1).keys(),
148
- pdfLength - 1,
149
- ];
+ const pagesNumbers = [...Array(pdfLength - 1).keys(), pdfLength - 1];
150
const pages = await splitedPdfDocument.copyPages(pdfDocument, pagesNumbers);
151
pages.forEach((page) => splitedPdfDocument.addPage(page));
152
const data = await splitedPdfDocument.save();
0 commit comments