Why PDFs break
A PDF is a collection of numbered objects (pages, fonts, images) plus an index at the end that says where each object starts. Most “damaged file” errors come from that index: a download that stopped early, an email gateway that changed line endings, a program that crashed while saving, or junk bytes added before or after the file. The content is often still there; viewers just can’t find it.
Three repair methods
- Rebuild the file structure. Toolvity reads every object it can directly from the file, ignoring the broken index, skips objects that are unreadable, restores missing page sizes and writes a fresh index. This fixes most files that won’t open and keeps everything selectable.
- Copy readable pages. If the page list itself is damaged, Toolvity finds pages one by one, even by scanning the file for them, and copies each readable page into a new PDF.
- Re-draw what’s visible. If neither works, every page a PDF viewer can still display is drawn into a new, image-based PDF. Text won’t be selectable, but you can run OCR PDF on the result.
The first method that recovers every page wins. Otherwise Toolvity keeps whichever result recovered the most.
What repair can’t do
If part of the file is truly missing, for example a download that stopped halfway, the pages stored in the missing part can’t be recreated. The report tells you how many pages came back and flags pages whose content was incomplete. Password-protected files need to be unlocked with Unlock PDF first.