Hopding / pdf-lib

Create and modify PDF documents in any JavaScript environment
https://pdf-lib.js.org
MIT License
7k stars 676 forks source link

Fix/invalid indirect object pass #1698

Closed brandnday closed 1 week ago

brandnday commented 1 week ago

What?

One of the sample pdf has an error, after some investigation it found that it is caused by invalid indirect object inside the pdf (missing endobj). This fix allow not to throw the parsing error and return the pdf context.

Why?

How?

Testing?

Added unit test for the specific pdf Ran the unit test locally

New Dependencies?

Screenshots

Suggested Reading?

Anything Else?

Checklist