LeafDeck

Privacy-first document tools

Repair PDF online

Recover data from corrupted PDF files. Use LeafDeck's privacy-first Repair PDF tool online without creating an account.

Rebuild a PDF that won't open cleanly

Repair PDF sends a problem file to LeafDeck's processing server, where Ghostscript reads it and writes a brand-new PDF from the page content it can interpret. Rewriting a document this way can clear up broken internal references, damaged cross-reference tables, and quirks left by badly behaved exporters that make some readers refuse to open it.

  • Regenerate the internal structure of a PDF that reports errors
  • Keep page orientation exactly as it was in the source
  • Delete the server copies yourself or let them expire after 15 minutes

How to use this tool

  1. Upload the damaged file

    Upload a single PDF no larger than 20 MB. The server checks that it really is a PDF before attempting a repair.

  2. Run the rebuild

    Press Start Processing. The document is rewritten on the server and downloads as repaired_ followed by your original filename.

  3. Verify against the original

    Open the repaired copy and compare page count, text, images, and any form fields before you replace the source.

Symptoms a rebuild can help with

Upload portals rejecting a file

A government or job portal says the PDF is invalid even though it opens on your computer. A clean rewrite often satisfies stricter checks.

Errors in one reader but not another

A document opens in a browser but shows warnings or blank pages in a desktop app, a sign that its structure is inconsistent.

Output from old scanners or exporters

Files from legacy scanning software or custom report generators sometimes break PDF rules in small ways that a rewrite smooths over.

What a repair can and cannot recover

Repair works best when the page content is intact but the file's indexing is broken. If part of the file is genuinely missing, after an interrupted download or a truncated email attachment for example, Ghostscript can only rebuild the pages it can still read, and lost pages or images will not come back.

Because the whole document is regenerated, the result is a new file rather than a patched copy of the old one. Any digital signature in the original will no longer validate, and interactive elements such as form fields deserve a careful check. Keep the source until you are sure nothing important was lost.

Repair PDF questions

My file is refused straight away. Why?

The server only accepts files that contain a PDF header near the start. If that header is missing, for instance because the file is another format renamed to .pdf, there is nothing for the repair to work with.

Will the repaired PDF look different?

Pages that could be read should look the same. The rewrite uses general-purpose settings, so the file size may go up or down.

What does it mean if the repair fails?

You'll see an error instead of a download, which usually means too little of the document was readable. Ask the sender for a fresh copy or re-export it from the program that created it.

Can I repair several PDFs in one go?

No. Repair PDF handles one file per run, so process each damaged document separately.

How long does the server keep my file?

The result screen has a button that deletes the uploaded file and the repaired copy immediately. Anything left behind is removed by an automatic cleanup once it is 15 minutes old.

Automate several PDF tasks with a free Flow