Comparing version 1.3.1 to 1.3.2
# CHANGELOG | ||
## v1.3.2 | ||
### Fixes | ||
* 🐛 use PDF length instead of cut PDF size limit | ||
## v1.3.1 | ||
@@ -4,0 +9,0 @@ |
@@ -146,6 +146,3 @@ const fs = require("fs").promises; | ||
if (pdfLength <= this.CUT_PDF_SIZE) return; | ||
const pagesNumbers = [ | ||
...Array(this.CUT_PDF_SIZE - 1).keys(), | ||
pdfLength - 1, | ||
]; | ||
const pagesNumbers = [...Array(pdfLength - 1).keys(), pdfLength - 1]; | ||
const pages = await splitedPdfDocument.copyPages(pdfDocument, pagesNumbers); | ||
@@ -152,0 +149,0 @@ pages.forEach((page) => splitedPdfDocument.addPage(page)); |
{ | ||
"name": "mindee", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Mindee Client Library for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "mindee/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2201603
6297