-
-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
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
Error when using node JS pdf-lib: Expected xref at NaN but found other content #249
Comments
I also came across this problem, did you find any solution? |
I'm having the same issue with PDF version 1.7 exported from sql reporting services. Seems that the issue comes from how the trailer information is interpreted 1.4 from the contributing.pdf example :
1.7 example from my pdf
SignPdfError: Expected xref at NaN but found other content. My typescript code:
|
Hello did you find a solution for this , im working on the same thing -- signing |
when a pdf is compressed this happens |
i found a way to bypass this problem useObjectStreams:false changes xref table stream to a regular xref table then you can use myPdf for sign without problem . |
I am using pdf-lib in a node JS project and I get the same error when trying to modify the pdf. Does anyone know why this is happening? Thanks!
The error is:
Expected xref at NaN but found other content
Thanks!
The text was updated successfully, but these errors were encountered: