What to Do When a PDF Will Not Open

"There was an error opening this document. The file is damaged and could not be repaired." It is one of the most alarming messages a PDF reader can show, and it is often wrong about the cause. Many PDFs that will not open are not damaged at all: they are incomplete downloads, web pages saved under the wrong name, files that are still in the cloud, forms that only one program can display, or simply locked with a password. Each has a different fix, and only one of them is actual repair. Work through the checks below in order and you will usually find the cause within a few minutes.

Step 1: Check the File Size

Look at the file's size in your file manager before anything else. A file of 0 bytes is empty. There is nothing in it to open or repair, and you need to get it again.

A file that is much smaller than it should be is usually an incomplete download or transfer. If the sender says the report is 8 MB and yours is 1.3 MB, the rest of it never arrived. Download it again, or ask for it to be resent, before you try anything else.

Step 2: Try a Different Viewer

PDF readers differ in how strict they are. Drag the file into a web browser window: Chrome, Edge and Firefox all have their own built-in PDF viewers. If the file opens there, it is fine, and the problem is your usual reader. Updating or reinstalling it is the fix.

One message deserves a special mention. If the PDF opens but shows only a message starting "Please wait...", saying that your PDF viewer may not be able to display this type of document, it is an XFA form. These are dynamic forms, often used by government and tax offices, that in practice only Adobe Acrobat and Adobe Acrobat Reader can display. Download the file and open it in Acrobat Reader instead of your browser. No repair tool can help here, because nothing is broken.

Step 3: Make Sure It Is Really a PDF

A file can be called .pdf without being one. The usual case is a download link that has expired or needs you to be signed in, so the website sends back a web page instead, and your browser saves it with the name of the PDF you asked for.

To check, open the file in a plain text editor such as Notepad or TextEdit, and look at the first few characters:

  • %PDF- followed by a version number, such as %PDF-1.7, means it is a PDF.
  • <!DOCTYPE html> or <html means it is a web page. Go back to the site, sign in if you need to, and download the file again.
  • PK means it is a ZIP archive. Word, Excel and PowerPoint files start the same way, so it may be one of those with the wrong extension.

While the file is open, look at the very end too. A complete PDF normally finishes with %%EOF. If the last lines are cut off mid-way, the file is truncated, which brings you back to step 1.

Step 4: A Password Is Not Damage

If the reader asks for a password, the file is encrypted, not broken. You need the password from whoever sent it. Once you have it, you can open the file normally, or remove the password from your own copy with Unlock PDF. Our tools that read PDFs also say "This PDF is protected" when they meet a file that needs a password, rather than calling it damaged.

Step 5: Rule Out Cloud and Email Problems

  • Cloud placeholders. OneDrive, Dropbox, Google Drive and iCloud can show files on your computer that have not actually been downloaded yet. Opening one without a connection, or while syncing is paused, fails. Mark the file to be kept on the device, such as "Always keep on this device" in OneDrive or "Make available offline" in Dropbox, wait for it to download, then try again.
  • Email attachments. Some email programs mishandle attachments, especially large ones or ones forwarded several times. Download the attachment again from webmail, or ask for it as a shared link instead.
  • Security software. Antivirus software sometimes holds a downloaded file back while it scans it, or quarantines it. Check its log if a file vanishes or refuses to open straight after downloading.

When the File Really Is Damaged

If none of the above explains it, the file may be genuinely damaged, and here it helps to know how a PDF is built. A PDF is a collection of numbered objects (pages, fonts, images, text), followed by a table at the end of the file that says exactly where each object starts. Most damage is in that table: a program saved the file without updating it, an edit was interrupted, or bytes were lost in transfer. The objects themselves are usually still intact. In that case, a repair tool can scan the whole file, find every object, and build a new table that points to the right places.

What no tool can do is recover what is not there. If a download stopped at 40%, the remaining 60% of the file is simply missing, and the pages in it are gone. Only a complete copy will bring them back.

Our Repair PDF tool is built around that distinction. It first checks whether the file is damaged at all, and if it is not, it says so, which tells you to look back at steps 2 to 5. If it is damaged, it tries up to three repair engines in turn. The first two rebuild the file's structure without touching the page content. The last resort reprints every page into a new file, which recovers more from a badly broken file but can lose bookmarks, form fields and attached files.

Then it reports what came back: how many pages were recovered out of how many the file claims to have, whether the text is still selectable, what is missing, which engine worked, and the size before and after. A partial recovery is reported as partial, not as a success. The tool accepts files up to 2 GB, and files are processed on our servers and deleted automatically about five minutes after you close the page. Keep your damaged original anyway: the sender may still have a good copy, and another tool may recover something different.

Preventing It Next Time

  • Let downloads finish completely, and compare the file size with what you expected.
  • Save edits to a new file name rather than over the only copy, especially on a USB stick or network drive that could disconnect mid-save.
  • Keep a backup of PDFs that matter, such as contracts, certificates and records, in a second place.

Conclusion

Before you assume a PDF is damaged, check its size, try another viewer, confirm it is really a PDF, and rule out passwords and cloud sync. When it truly is damaged, the structure can usually be rebuilt, but pages that never made it into the file cannot be recovered by anyone. A clear report of what came back is worth more than a file that only looks repaired.

Have a PDF that will not open? Try Repair PDF.

← Back to the blog