How to debug a corrupt pdf file?

Posted by Joelio on Stack Overflow See other posts from Stack Overflow or by Joelio
Published on 2010-06-15T20:23:49Z Indexed on 2010/06/15 20:32 UTC
Read the original article Hit count: 294

Filed under:
|
|
|

Hi, im generating pdf files using a ruby library called "prawn". I have one particular file that seems to be considered "Corrupt" by adobe reader. It shows up fine in both preview and in adobe reader. It gives errors like:

Sometimes I get: "Could not find the XObject named '%s'.

Othertimes I get: "Could not find the XObject named "Im4".

Then always I get: "An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem."

Is there a way to open a pdf with some tool and have it tell you what is technically wrong with the pdf? Im sure I could figure it out quickly with something like this...

thanks Joel

© Stack Overflow or respective owner

Related posts about pdf

Related posts about debug