Repair PDF

Find out why a PDF will not open, then rebuild whatever can still be recovered.

Repair reads and rewrites the file on your device. A damaged document is often the only copy you have, and nothing about it is uploaded.

Remove a password first

About Repair PDF

"The file is damaged and could not be repaired" tells you nothing about what went wrong. In practice a PDF that will not open is usually missing one of a handful of landmarks: the %PDF header a viewer checks first, the %%EOF marker at the end, the startxref pointer that says where the object table lives, or the trailer that names the document root. This tool reports each one individually, says whether the parser could still build a page tree, and then tries two repairs in order: copying the object graph into a fresh document, and — if that fails — redrawing every page the renderer can still paint.

Features

How to use the Repair PDF

  1. Drop the PDF that will not open
  2. Read the structure check to see which landmark is missing
  3. Press Repair and let it try the object rebuild first
  4. Download the repaired file and open it to confirm

Example

Input

invoice-scan.pdf — downloaded over a dropped connection

Output

End-of-file marker missing; startxref points to byte 481,209 in a 402,880-byte file. Rebuilt: 6 pages recovered.

A cross-reference offset past the end of the file is the signature of a truncated download.

Common errors & troubleshooting

Frequently asked questions

What usually breaks a PDF?
An interrupted download or copy, which truncates the file, and email gateways that prepend or append text. Both are visible in the structure check as a missing marker or a bad offset.
Is my broken file uploaded to be repaired?
No. The bytes are inspected and the rebuild happens in this tab, so a damaged file containing sensitive material stays with you.
What does "fast web view" in the report mean?
The file was arranged so a browser can show page one before downloading the rest. Rebuilding drops that arrangement, which affects loading speed and nothing else.
Will the repaired file be identical to the original?
The pages will be. The object layout is rewritten, so the byte size and any linearisation change — that is what repair means.
Can this recover a PDF I deleted?
No. This works on a file you still have; recovering a deleted file is a job for disk recovery software.

Related tools

All ArrayKit tools