Hi,
I recently got a pdf file which makes the PDFReader failed:
com.itextpdf.text.exceptions.InvalidPdfException: trailer not found.
at com.itextpdf.text.pdf.PdfReader.rebuildXref(PdfReader.java:1567)
at com.itextpdf.text.pdf.PdfReader.readPdf(PdfReader.java:522)
at com.itextpdf.text.pdf.PdfReader.<init>(PdfReader.java:172)
at com.itextpdf.text.pdf.PdfReader.<init>(PdfReader.java:161)
at MergePDF.main(MergePDF.java:63)
I tried to open the pdf with wordpad and it's true that it doesn't
have trailer. This is the end of the file:
endstream
endobj
startxref
2104896
%%EOF
And there is not trailer throughout the pdf file.
The pdf is generated by Acrobat distiller 9.3.0 from the properties
menu. And I was told that it's a combined version of multiple pdfs.
Is there any fix for that or I have to ask whoever generate the pdf to
re-generate it?
Thanks a lot!
M.
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php