PDF Downloaded From a Website Is Corrupted or Won't Open
A PDF that downloads but won't open is almost always a partial download or a server-side error. Here's how to diagnose the exact problem and get a working copy.
A PDF that downloads successfully (the browser shows the download completed) but opens to an error, shows blank pages, or will not open at all is almost always a partial download or server misconfiguration — not a truly corrupted file. The fix depends on whether the problem is in the download itself or in how the server is serving the file.
Step 1: Check the File Size
Right-click the downloaded file → Properties (Windows) or Get Info (Mac). Compare the file size to what the server reports. If the link text says "Download 8 MB PDF" and your file is 47 KB, the download was truncated. A 47 KB ".pdf" file is actually an HTML error page (the server returned a 404 or session expiry page with a .pdf extension, which your browser saved as a PDF). Open the file in a text editor — if you see HTML tags, this is the cause. Fix: try downloading again, possibly after logging in or refreshing the page.
Step 2: Verify With a Different Browser
Some browsers have download handlers that interfere with binary files. Try downloading the PDF using a different browser: if Chrome downloaded a corrupt file, try Firefox, Edge, or Safari. Right-click the link and use "Save Link As" rather than clicking directly — this bypasses the browser's inline PDF viewer and downloads the raw file. Some browser extensions (ad blockers, download managers) also intercept and sometimes corrupt binary file downloads — try in an incognito/private window without extensions.
Step 3: Diagnose the File Structure
Open the downloaded file in a text editor (Notepad on Windows, TextEdit on Mac with Format → Make Plain Text first). A valid PDF starts with the characters %PDF- as the very first line. If the file starts with <!DOCTYPE html>, <html, or {"error":, the server returned an error page, not a PDF. If it starts with %PDF- but is followed by garbled content and ends abruptly, it is a truncated download. If it starts and ends with proper PDF markers but still will not open, the server may have sent corrupted data.
Step 4: Repair the PDF
For a valid but damaged PDF that opens with errors: Adobe Acrobat Reader attempts automatic repair on open — let it complete and save the repaired result. For more severe damage: open in LibreOffice Draw, which has a tolerant PDF parser that often recovers content from damaged files. Ghostscript can also repair and re-output: gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=repaired.pdf damaged.pdf. These tools reconstruct the cross-reference table from the surviving object data in the file.
Contact the Source
If repeated downloads from the same source always produce the same corrupted file: the problem is server-side, not your connection. The server is either misconfiguring the Content-Type header (sending the file as text/html instead of application/pdf, causing browsers to encode it incorrectly), has a bug in the PDF generation code, or the stored PDF was uploaded incorrectly. Contact the website owner with a specific description: the file size you receive, what the first line of the file contains, and what error the viewer shows. This gives the server administrator enough information to identify the problem.
Try Compress PDF Now — Free
Browser-based, private, and instant. No account or software required.
Open Compress PDF


