diff --git a/CHANGELOG.md b/CHANGELOG.md index 8be467c11..40476d645 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Unreleased + +- Fixed document buffer size. Node.js 18+ allow max 1 GiB. + ## 0.3.0-beta.4 - 2022-12-17 - Minimal supported version Node.js 14 LTS diff --git a/src/OutputDocument.js b/src/OutputDocument.js index 1569cb4bf..f1c584e93 100644 --- a/src/OutputDocument.js +++ b/src/OutputDocument.js @@ -4,7 +4,7 @@ class OutputDocument { * @param {Promise} pdfDocumentPromise */ constructor(pdfDocumentPromise) { - this.bufferSize = 9007199254740991; + this.bufferSize = 1073741824; this.pdfDocumentPromise = pdfDocumentPromise; this.bufferPromise = null; }