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
const srcDoc = await PDFDocument.load(data)
> Error: Expected next byte to be 60 but it was actually 115
> ...
I cant share the PDF as it contains PII, but wondering how best to handle errors like this. I was trying to track down which page of the three pages has the error and found out that Preview on Mac automatically resolves whatever the issue is. After saving in preview the PDF loads fine.
Is it possible to recover from something like this? I'm assuming this is either a common error or known issue with some PDF generation tool out there.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I got this error while parsing a document.
I cant share the PDF as it contains PII, but wondering how best to handle errors like this. I was trying to track down which page of the three pages has the error and found out that Preview on Mac automatically resolves whatever the issue is. After saving in preview the PDF loads fine.
Is it possible to recover from something like this? I'm assuming this is either a common error or known issue with some PDF generation tool out there.
Beta Was this translation helpful? Give feedback.
All reactions