You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Caught error:
Error: Invalid stream: `endstream` not found
Are you making sure to either use the try/catch inside of an async function (and don't have any missing awaits), or properly add .catch() handlers to your promises?
To the error itself.
Any chance we could bake in a fix in the lib or find a workaround?
I am generally open to that, though depends a bit on how involved the workaround is.
In this case, I've created a potential workaround #286. However, while the error is gone, the PDF in question just produces white pages. Looks like there is something else wrong, but tracking that down is unfortunately beyond the time I am willing to invest in it, sorry.
The question now is, would the workaround work for other cases, or does it always produce white pages. Because if it's the latter, I'd rather keep the error.
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.
The text was updated successfully, but these errors were encountered: