We have some PDFs that have recently been throwing the following errors
when attempting to call the processContent method. I have noticed that a
few folks had noticed this with earlier versions of iText, but we are
currently using iText 5.5.0. I wish I could provide the PDF, but it has a
bunch of proprietary and confidential information in it.

It appears there are some acknowledged bugs with this code based on the
JavaDoc of the InlineImageUtils.java class:

        // read all content until we reach an EI operator surrounded by
whitespace.
        // The following algorithm has two potential issues: what if the
image stream
        // contains <ws>EI<ws> ?
        // Plus, there are some streams that don't have the <ws> before the
EI operator
        // it sounds like we would have to actually decode the content
stream, which
        // I'd rather avoid right now.

Is there any active development going on that would solve this issue for
some PDFs that addresses the whitespace issues?

[2014-09-02 18:45:52,433|ERROR|RESTService|genericException|88] Could not
find image data or EI
ExceptionConverter:
com.itextpdf.text.pdf.parser.InlineImageUtils$InlineImageParseException:
Could not find image data or EI
 at com.itextpdf.text.pdf.parser.InlineImageUtils.parseInlineImageSamples(
InlineImageUtils.java:386)
 at com.itextpdf.text.pdf.parser.InlineImageUtils.parseInlineImage(
InlineImageUtils.java:154)
 at com.itextpdf.text.pdf.parser.PdfContentStreamProcessor.processContent(
PdfContentStreamProcessor.java:386)
 at com.itextpdf.text.pdf.parser.PdfReaderContentParser.processContent(
PdfReaderContentParser.java:80)
 at com.tsgrp.opencontent.universal.annotation.XFDFAnnotationImpl.
getProcessedPage(XFDFAnnotationImpl.java:508)

Ben Allen

*technology services **group*
bal...@tsgrp.com
312-899-2943
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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

Reply via email to