Skip to content
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

Flattened PDFs Malformed #1267

Open
2 tasks done
kyle-leitham-aix opened this issue Jul 8, 2022 · 0 comments
Open
2 tasks done

Flattened PDFs Malformed #1267

kyle-leitham-aix opened this issue Jul 8, 2022 · 0 comments

Comments

@kyle-leitham-aix
Copy link

What were you trying to do?

Print a flattened PDF in Adobe.

How did you attempt to do it?

Download the PDF generated in the flatten code example provided in the README: https://jsfiddle.net/Hopding/skevywdz/2/ and attempt to print it in an Adobe PDF reader.

What actually happened?

The PDF won't print and Adobe will give you error dialogs:
Screen Shot 2022-07-08 at 10 32 57 AM
Screen Shot 2022-07-08 at 10 33 03 AM
:

What did you expect to happen?

The PDF should be able to print

How can we reproduce the issue?

  • Download the PDF generated in the flatten code example provided in the README: https://jsfiddle.net/Hopding/skevywdz/2/

  • Attempt to print it in an Adobe Acrobat Reader. Or, if you have an Adobe Acrobat Pro license, you can open the PDF and go to Preflight > PDF Analysis > Report PDF Syntax Issues and click Analyze. You should see these syntax errors describing that the page annotations are pointing to null references:

Screen Shot 2022-07-08 at 10 38 54 AM

Version

v1.17.1

What environment are you running pdf-lib in?

Node

Checklist

  • My report includes a Short, Self Contained, Correct (Compilable) Example.
  • I have attached all PDFs, images, and other files needed to run my SSCCE.

Additional Notes

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant