Fix Software-Generated PDFs That Will Not Open in Acrobat or Foxit
Question details
Determine why instruction PDFs generated by a software system cannot be opened after download.

- Product
- Adobe Acrobat and Foxit Reader
- Device & OS
- not provided
- Scenario
- A software company is beta testing a feature that generates and downloads PDF instruction files.
- Observed behavior
- The downloaded files do not open in Acrobat or Foxit Reader, and Adobe Reader reports that it could not open the file.
Save an affected download to a local computer and note the exact error message and reader version. If available, obtain a working PDF and access to the browser's developer tools for comparison.
Check the downloaded file and server response
Use these checks to find out whether the download contains a complete PDF or an error response saved as a PDF.
Download the instruction file and save it locally. In your file manager, check that it has a .pdf extension and compare its size with a working instruction PDF; a zero-byte or unexpectedly small file may indicate an incomplete download.
Open the downloaded file in a text or hexadecimal editor and inspect its beginning. A PDF normally begins with a %PDF- header; HTML, JSON, or an error message instead suggests that the server returned something other than the intended PDF.
Open your browser's Developer Tools, select the Network tab, and repeat the download. Select the download request and check its status, response headers, and response body for errors; a PDF response should normally use the application/pdf MIME type.
If you have access to the server-generated file, compare its size or checksum with the local download. If they differ unexpectedly, investigate the download handler for truncation or changes to the binary response.

Collect details for the software development team
Use this approach if the source of the failure remains unclear after checking the file and download response.
Create an Instruction PDF from the Source in WPS Writer
If the editable instruction document is available, use WPS Writer to export a replacement PDF and test it in your readers. This does not repair the software's PDF generation or download process.
- 1. Open the source document: Launch WPS Writer, select File > Open, and choose the editable instruction document.
- 2. Export a PDF: Select File > Export to PDF, choose a save location, and start the export.
- 3. Test the replacement: Open the exported PDF in Acrobat or Foxit Reader and check that the instructions display correctly.

Frequently Asked Questions
Why does a file with a .pdf extension fail to open?
The download may be incomplete or may contain an HTML or JSON error response instead of PDF data. Open it in a text or hexadecimal editor and inspect its beginning and file size.
How can I check whether the download returned an error page?
Open the browser's Developer Tools, select Network, and repeat the download. Select the request to inspect its status and response body.
Does application/pdf guarantee that a file is valid?
No. The MIME type describes the response but does not prove the PDF data is complete or valid. Check the file itself and compare it with the server-generated version.
What should I send the development team?
Share the affected file, the steps used to download it, the exact error message, the Acrobat or Foxit version, and any relevant download response details. Remove sensitive information first.




