You double-click an important PDF and get "There was an error opening this document. The file is damaged and could not be repaired", or a browser tab that says it failed to load the PDF. The file is not always lost. Often only its index is broken, and the pages are still inside.
Here is how to find out what went wrong, and how to get the pages back with Repair PDF, which runs in your browser.
Why PDFs become "damaged"
A PDF keeps an index near its end that tells readers where every page is. Readers open that index first. If it is missing or wrong, they stop, even if all the pages are present. The usual causes:
- An interrupted download. The connection dropped, but the browser saved what it had. This is common on mobile data.
- A bad email or chat transfer. A large attachment cut short, or a file sent through a service that altered it.
- An unsafe disconnect. A USB drive pulled out while the file was being written.
- A faulty export. Some older or buggy "Save as PDF" tools write a wrong index.
- A file that is not a PDF. A web page saved with a
.pdfname, for example an error page from a government portal. - A password. Some readers show a confusing error for an encrypted file. That file is not damaged.
Step 1: Check the obvious things (2 minutes)
- Compare the file size. Look at the size in the download list or on the website. If your copy is much smaller, it was cut short. Download it again, ideally on Wi-Fi.
- Try a second reader. Open it in Chrome or Edge, not only in the app that complained. Different readers tolerate different faults.
- Ask for a fresh copy. If it came by email or WhatsApp, ask the sender to send it again, or to share it as a link.
- Look at the first bytes. On a computer, open the file in a plain text editor such as Notepad. A real PDF begins with
%PDF-1.followed by a version number. If you see a line of HTML like<html>instead, you saved a web page, not a PDF. - Check for a password. If the file asks for one in another reader, it is encrypted, not damaged. Use PDF Unlock.
If none of that solves it, use Repair PDF.
Step 2: Repair it, step by step
- Open Repair PDF.
- Press Choose a damaged PDF and pick the file, or drop it on the page. The limit is 200 MB.
- Wait while it checks and rebuilds. This starts automatically. It never uploads the file.
- Read the verdict in the Repair result panel:
- "Repaired — all N pages recovered" means you are done.
- "Partly repaired" means some pages are missing from the file itself.
- "Recovered N of M pages by rendering them as images" means the pages look right but the text is not selectable.
- "Sorry — this file is too badly damaged to recover" means nothing readable was found.
- Press Download repaired PDF. It is saved with
-repairedadded to the name. - Open it in your normal reader and scroll through every page before you delete the old one.
How to read what the tool found
Under "What was found and done" the tool lists its checks. A cross next to one of these tells you what the damage was:
- PDF header: bytes of junk before the header. Something was written before the file. Rebuilding usually fixes it.
- End-of-file marker: Missing — the file looks truncated. Part of the end is gone. If pages are missing too, they cannot be recovered.
- Cross-reference pointer: Points to byte N, but there is no xref table there. The index points to the wrong place. This is the most common and the most fixable.
- Trailer: Missing or damaged. A reader can't find the document root. The tool looks for it itself.
The numbers at the top matter more than the crosses. Compare Pages expected with Pages recovered. If they match, you have everything. If not, the pages in between are in the part of the file that never arrived.
For a deeper explanation of each check and both repair methods, see Repair PDF: the complete guide.
Text selectable, or pictures only
Repair PDF tries two things in order. First it rebuilds the file's structure and copies the pages, which keeps text, fonts and quality. Only if that recovers too few pages does it draw each page as a 150 DPI image and build a PDF from those. If you get the image version and still need to search it, run it through PDF OCR. If you also have the structure-rebuilt version, prefer that one. The tool shows both in a table when both were made.
When repair is not enough
- The file was truncated. You will get "Partly repaired". Get the file again, or use an older copy, an email attachment or a cloud backup.
- It is not a PDF. If the tool says nothing readable was found, check the file in a text editor, as in Step 1. A saved web page cannot be turned into a PDF by repair.
- One page is the problem. If the report names a page that could not be recovered and you do not need it, remove it with Organize PDF Pages.
- You need part of the file now. A partly repaired file is still useful. Download it, and ask for the missing pages separately.
Prevent it next time
- Wait for the download to finish before opening or moving the file. Check the size.
- Eject USB drives properly.
- When you send an important PDF, send a link as well, or keep a copy in cloud storage.
- If you must email big scans, shrink them first with Compress PDF, because a smaller file has less to go wrong in transit. For targets such as one megabyte, see how to compress a PDF to under 1 MB.
- Keep the original file. Repair always makes a new copy.
Privacy
Repair PDF works inside your browser. The damaged file is read and rebuilt on your device and is not uploaded, so a bank statement or a certificate stays with you.
Related tools
- PDF Unlock: if the file turns out to be password-protected.
- PDF to JPG: save the pages that do open as pictures.
- Compress PDF: make the repaired file smaller.
- Repair PDF: the complete guide: every check and result explained.



