How to Repair a Corrupted PDF File

PDF won't open? Shows an error or blank pages? Learn how to repair corrupted PDF files using free tools, recovery software, and manual techniques.

A
Admin
· Jun 17, 2026 · 5 min read · 2 views

Why Do PDFs Become Corrupted?

A PDF file can be corrupted by a number of causes:

  • Interrupted download — File transfer stopped before completion
  • Bad USB or hard drive sectors — Physical storage errors
  • Email attachment damage — Some email clients modify attachments
  • Virus or malware — Malicious modification of file contents
  • Application crash during save — File written partially before crash
  • Software incompatibility — Created by software that doesn't fully implement the PDF specification

The good news is that PDF has a robust internal structure. Even severely corrupted files often contain recoverable content.


Step 1: Identify the Type of Corruption

Different errors indicate different problems:

Error message Likely cause
"File does not begin with '%PDF'" Header corrupted or wrong file type
"An error exists on this page" Page stream data corrupted
"The file is damaged and could not be repaired" Adobe Acrobat cannot fix automatically
File opens but shows blank pages Cross-reference table corrupted
File opens but images are missing Image streams corrupted
PDF is 0 KB Download failed completely — re-download required

Step 2: Try a Different PDF Viewer

Before assuming the file is corrupted, test it in multiple viewers. A PDF that won't open in Adobe Acrobat may open fine in:

  • Google Chrome — Drag the PDF onto a Chrome tab
  • Mozilla Firefox — Has its own built-in PDF renderer
  • Microsoft Edge — Opens PDFs natively on Windows
  • Foxit Reader — Often handles slightly malformed PDFs that Acrobat rejects
  • Sumatra PDF — Extremely tolerant of malformed files

If the file opens in any viewer, the "corruption" was just an incompatibility with one specific viewer.


Step 3: Re-download or Re-request the File

If the file size is suspiciously small, the download was probably incomplete:

  1. Check the file size — a typical document page is 50–500 KB; if your "20-page report" is 3 KB, it didn't download fully
  2. Download again, ideally on a stable wired internet connection
  3. If someone sent you the file, ask them to re-send using a different method (cloud link instead of email attachment)

Step 4: Use ToolsofPDF Repair

  1. Go to Repair PDF
  2. Upload your corrupted PDF
  3. Click Repair
  4. Download the recovered PDF

The repair tool rebuilds the cross-reference table, fixes stream lengths, and attempts to recover readable content from damaged page streams. This resolves the majority of common corruption issues.


Step 5: Adobe Acrobat's Built-In Repair

Adobe Acrobat Pro includes a PDF repair routine:

  1. Open Acrobat Pro
  2. Try File → Open with the damaged file
  3. If Acrobat detects corruption, it will prompt you to repair automatically
  4. If not prompted: File → Save As with a new filename (this rebuilds the internal structure)
  5. For cross-reference issues: Edit → Preferences → General → Repair PDF File (available in some versions)

If Acrobat itself produces "The file is damaged and could not be repaired," try the following:

  • Print to PDF: Open the broken file in any viewer that can display it, then print it to Microsoft Print to PDF — this creates a fresh, valid PDF from the visible content
  • Tools → Print Production → Preflight → Fix PDF — advanced automated fixes

Step 6: Use Ghostscript (Advanced)

Ghostscript is a free, powerful PDF interpreter that can often reconstruct files that other tools cannot.

On Windows (with Ghostscript installed):

gswin64c -o repaired.pdf -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress input_damaged.pdf

This passes the corrupted file through Ghostscript's PDF writer, which re-generates a clean file from whatever content it can read.

On Mac/Linux:

gs -o repaired.pdf -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress input_damaged.pdf

Step 7: Extract What You Can

If full repair fails, extract partial content:

Extract text:

  • Open the file in Google Chrome (often tolerates corruption)
  • Select all text (Ctrl+A), copy, paste into a text editor

Extract images:

  • Use PDF to JPG — some converters can render individual page streams even from corrupted files

Rebuild the document:

  • If you have a backup of the original content (in Word, email thread, etc.), rebuild from there rather than continuing to fight the corrupted PDF

Prevention: How to Avoid PDF Corruption

  • Verify downloads — If the source provides an MD5/SHA hash, verify it after downloading
  • Don't save over an open file — Always save to a new filename before closing the original
  • Keep backups — Store important PDFs in cloud storage with version history (Google Drive, OneDrive)
  • Use reliable storage — Avoid saving critical documents only on USB drives, which have high failure rates
  • Close before removing storage — Always eject USB drives safely before unplugging

Frequently Asked Questions

The file is 0 KB. Can it be recovered? No. A 0 KB file contains nothing. The download failed completely — you need a fresh copy.

Can I recover a PDF that was accidentally deleted? If you deleted recently, check the Recycle Bin. Otherwise, use file recovery software like Recuva (Windows) or TestDisk (cross-platform). Success rate depends on how much the drive has been written to since deletion.

My PDF opens but half the pages are blank. What's wrong? The cross-reference table is likely corrupted. Run the file through ToolsofPDF Repair, which rebuilds the table from the raw file structure.

Will repaired PDFs lose quality? No — repair tools reconstruct structure, not content. Images and text remain at their original quality.


Summary

Most corrupted PDFs can be fixed. Start with the simplest solutions: try a different viewer, re-download the file, and use ToolsofPDF Repair. For files that still resist, Ghostscript's PDF reprocessing is highly effective. If the file is truly unrecoverable, extract whatever content you can (text via clipboard, images via screenshot) and rebuild from the original source. Prevention through regular backups is the best long-term strategy.