« Return to Thread: Debugging errors from Adobe Reader.

Debugging errors from Adobe Reader.

by George Reilly-2 :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.

I created the attached PDF with iTextSharp 4.0.8. An absent colleague wrote the code. (Yes, most of the text is deliberately supposed to be obfuscated.)

 

I can open the PDF without problems in Adobe Reader 8.1.2 on Windows Vista, and it looks fine to me. After I print it, however, Reader pops up a dialog saying:

 

  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 general way to debug such problems? Is there some logging that can be turned on in Reader? Is there some other tool that will validate the PDF? Windows, Linux, or Mac, I don’t care.

 

I’ve looked at this PDF with PDFtk, PDF-Analyzer, and the free version of CABAReT Stage. PDFtk and PDF-Analyzer both say there are errors but I cannot convince them to be more specific. Cabaret Stage is perfectly happy.

 

I tried the iText toolbox, but I get:

  Select an Option

  Import Frames discarding current configuration?

  Yes/No/Cancel

And a status message saying

  Start reading out.xml

If I click Yes, I get a FileNotFoundException for out.xml

 

I’d love to hear a general technique for troubleshooting such issues, but I’ll happily settle for a specific answer about what’s wrong with this PDF.

 

Give a man a fish and you feed him for a day. Teach him how to fish and he’ll spend all weekend in a boat drinking beer.

 

--

/George V. Reilly  •  Cozi  •  Software Developer  •  p: 206 957 8447 x15

GeorgeR@...  •  www.cozi.com  •  blogs.cozi.com/tech

 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

display-err.pdf (45K) Download Attachment

 « Return to Thread: Debugging errors from Adobe Reader.

LightInTheBox - Buy quality products at wholesale price