How can I fix/repair a corrupted PDF file?

1,306 views
Skip to first unread message

john pitkern

unread,
Aug 2, 2014, 2:07:56 PM8/2/14
to repair-da...@googlegroups.com

Does anyone have any recommendation or procedures for repairing a corrupt PDF? When I open the file I get "There was an error opening this document. the file is damaged and cannot be repaired." There seems to be a myriad of tools out there but none that I could describe as reputable. Are there any opensource linux based solutions for this possibly?

alem...@gmail.com

unread,
Aug 3, 2014, 4:13:27 AM8/3/14
to repair-da...@googlegroups.com
I had a corrupted PDF file, print.pdf , that Ghostscript couldn't open, but the usual graphical Linux PDF viewers (Okular, Evince) opened fine. (In my case, the file had garbage at the start instead of a PDF header, when opened in a hex editor.)
These PDF viewers use Poppler as a back-end PDF renderer. So you can repair the PDF using Poppler's command-line tools. In Ubuntu these are in the poppler-utils package. I used:
pdftocairo -pdf print.pdf print_repaired.pdf
which generated a PDF file with correct headers, which tools like Ghostscript now accepted. May use demo soft Recovery Toolbox for PDF in this http://www.pdf.recoverytoolbox.com/ for repair pdf.

thomas...@gmail.com

unread,
Jan 19, 2015, 4:18:58 PM1/19/15
to repair-da...@googlegroups.com
Through Adobe Reader you may try to recover your pdf file
Reply all
Reply to author
Forward
0 new messages