Karen Keller wrote: > After doing a little more investigative work, it does seem to be > something with my program that is causing the problem, and not the > version of the PDF document. > > The error is "There was an error opening this document. The file is > damaged and could not be repaired." The error is occurring for Adobe > Reader Version 7 (and below I presume). The PDFs work fine in version 8 > and above. The error occurs even if I try working with an old pdf > created in 2005, which I can open up directly in Adobe Reader Version 7 > with no problem. It just doesn't open in my code. > > I've tried a simple version of my program which just opens an instance > of an iText Document, reads in the PDF via a pdfReader to my final PDF > document via the AddPage method, and closes the document but even that > does not work. Here is my simple program code. Can anyone see something > wrong?
As far as I can read non-Java code, I don't see anything wrong, but can you show us the PDF that demonstrates the error? ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
