PDF Won't Open? How to Find Out Why and Repair a Damaged File
Published October 11, 2026 · TG Edit-Pdf
"There was an error opening this document. The file is damaged and could not be repaired." "Failed to load PDF document." "The file is not a supported file type or has been damaged." These messages all look like the same problem, but they have several different causes — and only some of them are actually damage. The good news is that a few quick checks tell you which one you're facing, and many "corrupt" PDFs turn out to be perfectly recoverable.
Work through the steps in order. The early ones take seconds and solve a surprising share of cases.
Step 1: Check the file size
Look at the file's size before anything else.
- 0 bytes, or just a few KB for what should be a long document → the file is incomplete. The download was interrupted, the attachment was cut off, or a sync didn't finish. Nothing can rebuild pages that were never transferred. Download it again or ask the sender to resend it.
- A sensible size → the data is probably there. Carry on.
Step 2: Try a different viewer
PDF readers differ in how forgiving they are. A file that fails in one may open fine in another, because some viewers quietly repair small structural errors and others refuse.
Try opening the file in your web browser (drag it into a Chrome, Edge, Firefox or Safari window), then in a desktop reader. If it opens anywhere, you can often just save a fresh copy from there — or run it through Repair PDF (Step 5) to get a clean file that every viewer accepts.
Step 3: Make sure it's actually a PDF
A file ending in .pdf isn't necessarily a PDF. Websites sometimes serve an error or login page under a .pdf name, and files get renamed by mistake. Open the file in a plain text editor (Notepad on Windows, TextEdit in plain-text mode on a Mac) and look at the very first characters:
| The file starts with | What it really is | What to do |
|---|---|---|
%PDF- followed by a version, like %PDF-1.7 | A real PDF | Continue to Step 4 |
<!DOCTYPE html or <html | A web page saved with a .pdf name — often a login or "session expired" page | Sign in to the site and download the document again |
PK | A ZIP archive — or a Word, Excel or PowerPoint file, which are ZIPs inside | Rename to .zip, .docx, .xlsx or .pptx as appropriate |
ÿØÿ | A JPEG image | Rename to .jpg, or convert with Images to PDF |
‰PNG | A PNG image | Rename to .png, or convert with Images to PDF |
Don't save anything from the text editor — just look and close it.
Step 4: Check whether the end of the file is there
Still in the text editor, jump to the very end of the file. A complete PDF normally ends with %%EOF (sometimes followed by a blank line). If the file just stops in the middle of unreadable binary content, it was truncated — the last part never arrived. Like a 0-byte file, the reliable fix is a fresh copy from the source.
That said, a truncated file can sometimes still be partly recovered, because the earlier pages may be intact. It's worth trying Step 5 before giving up.
Step 5: Repair the structure
A PDF contains an internal index — the cross-reference table — that tells a viewer exactly where each page, font and image sits inside the file. When that index points to the wrong places, the content may be perfectly intact but the viewer can't find it, and gives up. This is the most common kind of genuine PDF "damage", and the most fixable.
Repair PDF reads the file in a lenient mode that rebuilds the index by scanning the file for its objects directly. It also copes with stray bytes before the start of the file or after its end, which some email systems and download managers add. The result is saved as a clean, well-formed PDF. Page content is preserved as it was found, not re-rendered.
- Open Repair PDF and add the damaged file.
- Click Repair PDF and download the result.
- Open the repaired copy and page through it — check that the page count matches what you expect and that the last pages look complete.
What repair can't fix
- Missing data. If part of the file never arrived (Step 1 or Step 4), the pages stored in the missing part can't be reconstructed. You may get the earlier pages back; the rest needs a fresh copy.
- An unknown password. An encrypted PDF that you don't have the password for isn't damaged — it's locked. If you know the password, Unlock PDF removes it.
- Files that aren't PDFs. See Step 3.
- Corrupted content inside an object. If the bytes of an image or page description were altered — rather than just misplaced — that page may render partly or not at all, even after the structure is fixed.
Why PDFs get damaged in the first place
Knowing the cause helps you avoid a repeat:
- Interrupted downloads and uploads — the most common cause by far.
- Email gateways and attachment limits that truncate or re-encode large files.
- Transferring files in "text" mode. Older FTP clients in ASCII mode rewrite line endings inside binary files, corrupting them.
- Cloud-sync conflicts, when the same file is edited on two devices before syncing.
- Removing a USB drive or memory card while a file is still being written.
- Software that saves PDFs incorrectly — usually a bug in the program that created the file, which is when repair works best.
How to avoid losing an important PDF
- Keep the original from the source — the download link, the sender's email — until you've confirmed your copy opens.
- Open important files right after downloading them, while it's easy to get a new copy.
- Back up documents you can't replace, in more than one place.
- Archive long-term records as PDF/A. It's a stricter PDF format designed to stay readable for decades; our guide to PDF/A explains when it's worth it.
The takeaway
Most "damaged PDF" errors fall into one of four cases: the file is incomplete, the viewer is strict, the file isn't really a PDF, or its internal index is broken. Check the size, try another viewer, look at the first and last characters, and then let Repair PDF rebuild the structure. If data is genuinely missing, no tool can invent it — go back to the source for a fresh copy.
More PDF guides
