-
-
Notifications
You must be signed in to change notification settings - Fork 612
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
Processing through pdf-lib causes xref/corrupt message #454
Comments
Hello @jackwshepherd! I’m unable to view the document via the link you shared. Can you please upload the PDF directly to this thread as an attachment? |
@Hopding - I just emailed this to you. Thank you :) |
I just published You can install this new version with npm:
It's also available on unpkg:
As well as jsDelivr: |
@jackwshepherd Version const pdfDoc = await PDFDocument.load(bytes, { capNumbers: true }); The full release notes are available here. You can install this new version with npm:
It's also available on unpkg: As well as jsDelivr: |
Thank you once again :) |
Hello
Thanks once again for supporting such a fantastic library. I've always had trouble with the below PDF.
https://tinyurl.com/y9cwewbz
It appears that whenever I process it through pdf-lib, it opens in every PDF Reader except Adobe Reader. I think it's quite important it works in Adobe Reader.
When I run qpdf on it, I get the below error:
WARNING: /Users/me/Downloads/corrupt.pdf: file is damaged
WARNING: /Users/me/Downloads/corrupt.pdf (offset 6711353): xref not found
WARNING: /Users/me/Downloads/corrupt.pdf: Attempting to reconstruct cross-reference table
My code is below, in case relevant.
Thanks a lot
The text was updated successfully, but these errors were encountered: