Skip to content

Commit

Permalink
Fixed document buffer size. Node.js 18+ allow max 1 GiB #2543
Browse files Browse the repository at this point in the history
  • Loading branch information
liborm85 committed Feb 12, 2023
1 parent fb10d63 commit d9b5b9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/OutputDocument.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class OutputDocument {
* @param {Promise<object>} pdfDocumentPromise
*/
constructor(pdfDocumentPromise) {
this.bufferSize = 9007199254740991;
this.bufferSize = 1073741824;
this.pdfDocumentPromise = pdfDocumentPromise;
this.bufferPromise = null;
}
Expand Down

0 comments on commit d9b5b9e

Please sign in to comment.