pdf_annotation_fix icon indicating copy to clipboard operation
pdf_annotation_fix copied to clipboard

Header error parsing pdf file in web app

Open rkworden opened this issue 2 years ago • 1 comments

Opening a pdf that was annotated in Big Sur. Upon uploading the document and pressing "Save Recovered", I get this error:

unable to parse pdf document

Caused by:
    Invalid file header

Shoot me your email address and I will forward the actual document to you Screen Shot 2022-03-08 at 1 53 51 PM

Many thanks

.

rkworden avatar Mar 08 '22 21:03 rkworden

I'm not sure what could cause this. There is unfortunately not much I can do about it. The tool relies on https://crates.io/crates/lopdf for pdf parsing. If that fails, the tool can't do much.

Regardless, I have updated the pdf parser to the latest version. If you're lucky, this fixes your issue, but not promises. I suggest you try again using the web app (the update should be live already).

julihoh avatar Mar 05 '23 12:03 julihoh