PDF guides
Why PDFs Get Corrupted and What Can Be Recovered
A “corrupted” PDF is usually a PDF with a damaged index, a missing ending, or altered bytes somewhere inside it. Knowing how a PDF is put together explains why some damage is easy to fix and some is permanent.
Ready to try the tool this guide describes?
How a PDF is organized
A PDF starts with a header (%PDF-), followed by a body of numbered objects: pages, fonts, images and content streams. At the very end come a cross-reference table (an index of where every object begins), a trailer, and a pointer to that index. A viewer reads the file from the back: it finds the pointer, follows it to the index, and uses the index to jump to the objects it needs.
That design makes PDFs fast to open, and it is also why damage near the end of a file is so disruptive.
Common causes of damage
- Interrupted downloads and transfers that leave a file cut short.
- Email or file-transfer software that alters binary data, such as transferring in text mode.
- A program crashing or losing power partway through saving.
- Cloud-sync conflicts that leave a half-written file.
- Storage errors on failing disks or damaged memory cards.
- Generators with bugs that write an invalid index or trailer.
What is usually recoverable
If the objects are all still there but the index is wrong or missing, a repair tool can rebuild the index by scanning the body for objects. That is the most common fixable case, and it can restore a file that a viewer refuses to open even though the content is intact.
Stray data before the header, a damaged trailer, and a wrong length recorded for a stream are also often recoverable, because the underlying content is still present.
What is usually not recoverable
If the file was cut short before all of its content was written, the missing part is gone. A repair tool can rebuild an index for the objects that made it, but it cannot invent the rest. Individual compressed streams that are themselves corrupted may lose the page or image they held.
This is why repair results should be described by what the recovered file contains, not by a promise about what was lost: a damaged file often cannot report how many pages it originally had.
Reducing the odds next time
- Keep a second copy of important PDFs before sending or syncing them.
- Send large PDFs in a compressed archive so transfer software does not alter them.
- Wait for a download or sync to finish completely before opening or moving the file.
Why PDFs Get Corrupted FAQ
- Why do some viewers open a PDF that others reject?
- Viewers differ in how forgiving they are. Some quietly rebuild a broken index while others give up, so a file can open in one and fail in another.
- Can a virus corrupt a PDF?
- Malware can damage files, but ordinary corruption from interrupted transfers, failed saves and storage errors is far more common.
- Does re-saving a PDF in another program repair it?
- If the program can open the file, re-saving it writes a fresh, valid structure, which is essentially the same idea as a repair. If it cannot open the file, that will not help.
- Is a zero-byte or very small file recoverable?
- A file with no content cannot be recovered. A suspiciously small file usually means the transfer failed, and the fix is to get the file again.
- Can a truncated file be partly recovered?
- Sometimes the objects written before the cut can be recovered, giving a document with fewer pages. The tool reports what the repaired file contains, not what was lost.
Related guides
- How to Repair a Corrupted PDFA step-by-step walkthrough of Repair PDF: what to check first, what the summary means, how to tell when a heavier rebuild was needed, and what to do when a file cannot be recovered.
- PDF Won't Open ChecklistA symptom-driven checklist for a PDF that will not open: check the size and first bytes, try another viewer, rule out passwords and bad transfers, and only then try a repair.
