nbesli/pdf-merger-js

Error: Invalid stream: `endstream` not found

Closed this issue · 0 comments

Hi!

After some research it seams this is a known issue due to pdf generators not following pdf specifications close enough.
Unfortunately we still have to deal with it... Any chance we could bake in a fix in the lib or find a workaround?

The issue is also that this error makes our application crash, it's not caught even if inside a try / catch block for some reason.

You can find a pdf that allows to reproduce the issue here.

EDIT: Looking at the code I posted the issue on the pdfjs repo itself as it is more appropriate.