Skip to content

Repair PDF

Attempt to recover a PDF that other readers refuse to open.

Updated

Add your files

PDF

How to repair PDF

  1. 1

    Add the PDF that will not open; one file per run.

  2. 2

    Leave Salvage readable pages individually on so that, when the file cannot be rebuilt whole, every page that still renders is saved as an image.

  3. 3

    Press Repair PDF. The result says how many pages were recovered, or that nothing could be saved, before you download the copy.

  • Use Remove PDF password when the PDF opens but asks for a password: that is protection, not damage.

Two passes, from gentle to drastic

The first pass opens the file with a tolerant parser and copies every page into a new document, keeping text selectable and form fields fillable. Fonts and images the pages share are written once, and anything the pages do not reference is left behind. Bookmarks and the document properties are not carried over, because the result is a new file built from the pages. The result reports the pages recovered out of the pages found.

If that parse fails, the second pass asks a different reader, pdf.js, to render whatever it can. Each page that renders is saved as a JPEG at 150 dpi and 90% quality and placed on a page of its original size, with the resolution lowered and a note added when the pages would not fit in memory, and the result warns that the text is gone. Switch off Salvage readable pages individually to stop at the first failure instead.

What cannot be repaired

A file that is not a PDF at all, such as a Word document renamed to .pdf, is reported as having no PDF header. A password-protected PDF is not treated as damaged: you are asked for its password, and the repaired copy is saved without one. Protection by a certificate or a rights-management service cannot be opened at all. And a file whose page data is truncated cannot be rebuilt, since no tool can restore bytes that are not there.

Questions about Repair PDF

What does the repair actually do?

The file is parsed again by a reader that tolerates broken objects and a missing or wrong cross-reference table, and every page it finds is copied into a new, cleanly written PDF with a fresh table. That fixes the common case of a file cut off at the end or saved with wrong offsets. It cannot invent content: a page whose data is missing stays missing.

Why is my repaired file an image with no text?

Because the first pass failed and the pages were salvaged one by one: each was drawn at 150 dpi and stored as a JPEG, so the text is no longer selectable. The result says so, and the file name ends in "-salvaged" instead of "-repaired". Run OCR PDF on it to get a text layer back.

It says the file cannot be recovered. Is there anything else to try?

Not here. That message means neither the page tree nor the page content could be parsed, which usually means the data itself is truncated. Download or export the file again from its source.

Advertisement