| The comp.text.pdf Frequently Asked Questions | ||
|---|---|---|
| <<< Previous | Next >>> | |
Q: I have created a PDF file and get the following error when trying to view the file in Acrobat Reader 4.0:
"The file is damaged but is being repaired."
No other information is given. The file then opens and I can view the document. The file has not been zipped or e-mailed. As a test, I created a PDF example from the Adobe Portable Document Format Manual Version 1.3 and I received the same error. In both cases, the result is messed up. Is there a way to either truly fix such a file, or at least "extract" the good parts? [Q13]
A: This normally means you have the offsets in the XREF table wrong, so they are regenerated. Make sure you are using an editor that will show you binary content, and remember to count each newline as two bytes if you are running on Windows.
Michael Still (mikal@stillhq.com) [A22]
A: When I see this message it means "something is wrong" and it could be just about anything. The first thing to think of is: remember that PDF is indexed with exacty byte offsets -- so be sure you are using the right sort of line ending and counting all the bytes correctly.
Aaron Watters (aaron@at.reportlab.dot.com) [A23]
| <<< Previous | Home | Next >>> |
| Development: Microsoft Windows specific | Distiller |