We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since v4.0.0 (and pdf-lib replacing pdfjs), saveAsBuffer() method returns a Uint8Array instead of a Buffer.
So, to fix it, I had to replace await merger.saveAsBuffer() with Buffer.from(await merger.saveAsBuffer())
await merger.saveAsBuffer()
Buffer.from(await merger.saveAsBuffer())
The text was updated successfully, but these errors were encountered:
@t0m4-null Yeah, that is a bug, introduced by #84
I'll provide a fix, soon.
Sorry, something went wrong.
fix(#93): saveAsBuffer should return a Buffer
71df5ba
d133bc3
cdc49ba
Successfully merging a pull request may close this issue.
Since v4.0.0 (and pdf-lib replacing pdfjs), saveAsBuffer() method returns a Uint8Array instead of a Buffer.
So, to fix it, I had to replace
await merger.saveAsBuffer()
withBuffer.from(await merger.saveAsBuffer())
The text was updated successfully, but these errors were encountered: