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.
Keep a recovery log for important documents
For an important file, record the original filename, byte size, source, date received and the behavior seen in two readers before attempting repair. Give every output a new name instead of replacing a previous result. This preserves a chain from the damaged input to each recovery attempt.
After every attempt, note the reported page count, pages that fail, whether text search works and whether attachments or signatures remain visible. A result that opens is not necessarily more complete than one that reports an error; the comparison log exposes silent page loss and substitutions.
If another copy becomes available, compare more than the first page. Check file size, page count, totals, dates and a sample from each document section. For evidence, records or regulated workflows, let the responsible issuer or records owner decide whether a recovered copy is acceptable.
Treat active content in a damaged PDF cautiously. Do not enable scripts, launch embedded files or follow unexpected links merely because the viewer requests it during recovery. Work in an updated reader on an isolated copy, and use the original source or a trusted sender to confirm that attachments are legitimate before opening them.
A visually complete result can still lose forms, layers, bookmarks, accessibility tags, signatures or embedded files. Decide which features matter before choosing a repair method, then test those features explicitly. If recovery rasterizes pages, label the output as a visual copy rather than presenting it as an equivalent original.
When exact identity matters, record a cryptographic checksum of the untouched input and each accepted output with the recovery notes. The checksum does not prove that content is correct, but it prevents later confusion between similarly named attempts and shows whether a reviewed file changed afterward.
- Preserve the original and identify every derivative by attempt and date.
- Record viewer behavior and page counts before and after repair.
- Verify attachments, signatures and searchable text separately.
- Escalate acceptance of critical recovery copies to the document owner.
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.