To repair a corrupted or "damaged" PDF, use Zro7 Repair PDF. It scans the file byte-by-byte, rebuilds the cross-reference (xref) table from surviving objects, and writes a fresh PDF containing every page it can recover. All in your browser, so a confidential broken file doesn't have to be sent anywhere.
Why PDFs "break"
- Truncated download / upload — the last few KB (including the xref table and %%EOF marker) never arrived.
- Wrong FTP mode — ASCII mode mangles binary bytes (\r\n vs \n).
- Editor crash mid-save — trailer written before all objects flushed.
- Concatenated files — two PDFs glued together with
cat a.pdf b.pdf(viewers only read the first one). - Partial encryption — a broken lock/unlock left inconsistent state.
How Repair PDF works
- Scan the raw bytes for every valid
obj ... endobjblock, ignoring the broken xref. - Build a fresh xref pointing at the surviving objects.
- Locate the root Catalog and page tree by walking the objects.
- Emit a new, spec-compliant PDF with the recovered pages.
Recovery is best-effort: pages whose content streams were truncated may be dropped or open blank; encrypted PDFs whose encryption dictionary is destroyed cannot be recovered without the key.
Steps
- Open Repair PDF.
- Drop the broken file.
- Wait a few seconds while the byte scan completes.
- Download the repaired copy and open it in your usual viewer.
If repair doesn't help
- Re-download the file — a truncated original is the most common cause.
- Check the file starts with
%PDF-1.x; if it doesn't, it's not actually a PDF (rename mistake). - For images inside a broken PDF, try PDF OCR after rasterizing what opens.
Zro7