How to Repair a Corrupted PDF Without Risking the Original
Safely recover a corrupted PDF, understand what repair can rebuild, isolate damaged pages and verify the result before relying on it.
What to do first
Duplicate the damaged file, confirm that the download is complete, then repair only the copy. Compare page count and visible content afterward. If only some pages render, recover those pages and request a fresh source for anything critical.
PDF corruption ranges from a broken index around otherwise intact pages to a truncated file missing its final content. The first case is often recoverable; the second may not be.
Recovery should preserve evidence. Never overwrite the only copy, and do not assume a tool's 'success' status proves that every image, font, attachment or signature survived.
What this problem looks like
- The reader reports an invalid cross-reference table or unexpected end of file.
- Some pages open while others fail or remain blank.
- Thumbnails appear, but saving or printing stops.
- The file size changed after an interrupted transfer.
- Different readers show different page counts.
The most common causes
Interrupted save or transfer
The file may end before all objects and indexes were written.
Broken cross references
Objects still exist, but the table that points to their byte positions is wrong or missing.
Malformed page content
A single image, font or stream can be syntactically invalid and crash processing on one page.
Incremental revision damage
PDFs can append edits as revisions. A failed final update may leave an earlier revision partially recoverable.
Storage damage
Disk, sync or email corruption can change bytes. Compare hashes or file sizes if another copy exists.
How to fix the problem safely
- 1
Freeze the original
Make a byte-for-byte copy and work only on the duplicate. Record where the original came from and its size if the document is important.
- 2
Obtain another copy
Redownload from the source, restore a previous cloud version or ask the sender to resend. Replacement is safer than repair when available.
- 3
Compare viewer behavior
Test two current readers without resaving. Note page counts, pages that fail and whether text extraction works.
- 4
Run structural repair
Use a repair workflow that reads recoverable objects and writes a new PDF. Do not overwrite the input.
- 5
Isolate failing pages
If repair fails, extract readable page ranges. Narrow down the page that causes the error and recover the remaining ranges separately.
- 6
Rasterize only as a fallback
Render visible pages to images and rebuild a PDF when structure cannot be retained. Expect loss of text, links, forms, tags and signatures.
- 7
Verify against known facts
Compare page count, first and last page, totals, names, dates, attachments and signature status. For critical records, request a fresh authoritative copy.
Structural repair versus visual recovery
Structural repair preserves original page objects where possible and rebuilds indexes around them. It offers the best chance of retaining searchable text and vector quality.
Visual recovery captures rendered pages. It is useful when pages can still be displayed, but it creates a new representation rather than restoring the original document structure.
When to stop repairing
Stop when outputs show inconsistent page counts, missing sections, unexplained substitutions or repeated crashes. More conversion steps can hide rather than solve data loss.
For contracts, invoices, certificates, medical records and signed files, a replacement from the issuer is preferable. A recovered viewing copy should be labeled as such.
Checklist before you finish
- Never overwrite the only copy.
- Try replacement or version history first.
- Record page counts in multiple readers.
- Repair structure before rasterizing.
- Recover unaffected page ranges separately.
- Verify totals, dates and signatures.
- Request a new authoritative source for critical documents.
When the file itself needs work
Work on a copy. Uploads use an encrypted connection and expire automatically after the short job window.
Frequently asked questions
What does PDF repair actually do?
It usually rebuilds indexes and rewrites readable objects into a valid container. It cannot recreate missing bytes.
Can I repair a zero-byte PDF?
No. A zero-byte file contains no PDF data. Recover it from the source, backup or sender.
Why are some pages missing after repair?
Their objects may be absent or too damaged to parse. Compare the output with another copy and recover readable ranges separately.
Does rasterizing count as repair?
It is visual recovery. It preserves what can be rendered but loses much of the original document structure.