Lee este artículo en español.
How to Fix a Damaged or Corrupted PDF That Won't Open
Updated
Short answer: first open it in a different viewer (Chrome, Edge, Firefox or Preview on a Mac): each one tolerates errors differently. If one of them opens it, print it to a new PDF (Print → Save as PDF, or Microsoft Print to PDF on Windows) and you get a clean copy. If the file is much smaller than it should be, it was cut off while downloading or sending: get it again, because no tool can recover the missing part.
A PDF doesn't break on its own. It's almost always one of these:
- The download or upload got cut off halfway (bad connection, browser closed, USB unplugged).
- It came from a scan or conversion that failed partway through.
- It synced badly in Dropbox, Google Drive or similar, leaving an incomplete version.
- Some program wrote it badly when saving (rarer, but it happens).
The usual symptom: the PDF won't open, your reader says the file is damaged or could not be repaired, or it opens but cuts off mid-page.
Try this first, by hand
- Open it in another viewer. Chrome, Edge, Firefox and Preview read PDFs with different engines; one may open a file another rejects.
- Print it to a new PDF. In the viewer that opens it, choose Print and pick Save as PDF (or Microsoft Print to PDF). The new file is written from scratch and usually opens everywhere. Links and form fields may be lost.
- Check the size and download it again. A PDF that is much smaller than expected was cut off. Ask for it again or download it again.
- Use qpdf if you're comfortable with the command line.
qpdf --check damaged.pdftells you what's wrong, andqpdf damaged.pdf repaired.pdfwrites a new copy, which fixes many broken internal indexes.
Printing from the browser works surprisingly often because the browser doesn't copy the original bytes: it redraws every page and generates a brand new PDF from that. If the problem was in the file's internal structure, not the content itself, it disappears.
When you need to fix many PDFs, or fix them automatically
The browser trick is perfect for one file. If damaged PDFs keep arriving (say, attachments that reach a workflow half-downloaded) and you don't want to fix them by hand, Repair PDF does the structural repair through an API call, from n8n, Make, Zapier or your own code.
It targets the cause behind most "damaged" files: the internal index, the part that tells a reader where each page starts, sits at the end of most PDFs and is the first thing lost when a download is cut off. Repair PDF reads the whole file and builds a new index. If only the end was missing, you usually get the full document back. If the file was cut off much earlier, you get the pages that were saved before the cut, and the response tells you how many that is so you can compare it with what you expected. If nothing can be recovered, it says so and the credit isn't charged.
If only some pages are broken
Sometimes the file opens but some pages are fine and others aren't, or you have two different copies and each one has half the good pages. In that case you don't need to fix the whole PDF, you just need to keep the pages that actually work.
With Split PDF you can separate the document by page or by range. Pull it apart first, check which pieces open cleanly, and drop the ones that don't.
Putting the recovered pages back together
Once you have the good pages (whatever survived from the original, plus anything you rebuilt with the browser trick, or even loose pages from a second scan), the last step is putting them back into a single document.
With Merge PDFs you combine them in whatever order you want and get back one clean PDF, ready to save or send.
When you need something stronger
If the file won't open even in the browser or after Repair PDF, or you only get a blank page, the damage is probably in the content itself, not the structure. There's no shortcut for that: you'd need a new scan or the original file from whoever sent it. No tool can guess data that's already gone.
How to stop it happening again
- Don't close the browser or unplug anything while a PDF is downloading or uploading.
- If you're emailing it or uploading it to the cloud, wait for it to finish syncing before closing the folder.
- Keep a copy of the original file before editing or signing it, in case the editor fails halfway through.
FAQ
Can a corrupted PDF always be fixed? No. If the damage is in the file's internal index, it can usually be rebuilt. If part of the file is missing, for example after an incomplete download, the missing pages can't be recovered: get the file again.
Why does the PDF open in Chrome but not in Acrobat? Each viewer handles errors differently, so a browser may open a file that Acrobat rejects. Print it from the browser to a new PDF to get a clean copy.
Is there an automatic "repair PDF" button? Yes, with a limit. Repair PDF rebuilds the file's internal structure and returns everything it could read, but it can't bring back what the file already lost (for example, the pages of a download that was cut off halfway). It's an API, so it suits workflows and many files at once; for a single file, the browser trick (print to PDF) is still the quickest, and it sends your file nowhere.
What if the PDF asks for a password I don't have? That's not a damaged PDF, that's a protected one. It's a different problem and outside the scope of this article.
Do Split and Merge repair the PDF on their own? Not directly. What they do is let you separate the good pages from the bad ones, then put them back into one clean document. The actual repair, when needed, is the browser step, Repair PDF, or a new scan.
Related guides
- Rotate a PDF that's upside down
- Extract the text from a PDF
- Password-protect a PDF (or remove the password)
Try these tools
You'll find the full instructions for Repair PDF, Split PDF and Merge PDFs, with examples for n8n, Make and your own code. And if you don't have an account yet, you can create one for free.