Hi guys,
I'm fairly new to iText and have looked for options to get around the
following error but couldn't find much help. All I'm trying to do is to
just extract text from the first page of a PDF (a valid one). I tried to
use both the PdfContentStreamProcessor.processContent method and the
PdfTextExtractor.getTextFromPage method but looks like the latter one is
using the first one underneath anyway. Would appreciate any help!
ExceptionConverter:
com.itextpdf.text.pdf.parser.InlineImageUtils$InlineImageParseException:
EI not found after end of image data
at
com.itextpdf.text.pdf.parser.InlineImageUtils.parseUnfilteredSamples(
InlineImageUtils.java:289)
at
com.itextpdf.text.pdf.parser.InlineImageUtils.parseInlineImageSamples(
InlineImageUtils.java:308)
at com.itextpdf.text.pdf.parser.InlineImageUtils.parseInlineImage(
InlineImageUtils.java:150)
at
com.itextpdf.text.pdf.parser.PdfContentStreamProcessor.processContent(
PdfContentStreamProcessor.java:363)
Exception in thread "main" ExceptionConverter:
com.itextpdf.text.pdf.parser.InlineImageUtils$InlineImageParseException:
EI not found after end of image data
at
com.itextpdf.text.pdf.parser.InlineImageUtils.parseUnfilteredSamples(
InlineImageUtils.java:289)
at
com.itextpdf.text.pdf.parser.InlineImageUtils.parseInlineImageSamples(
InlineImageUtils.java:308)
at com.itextpdf.text.pdf.parser.InlineImageUtils.parseInlineImage(
InlineImageUtils.java:150)
at
com.itextpdf.text.pdf.parser.PdfContentStreamProcessor.processContent(
PdfContentStreamProcessor.java:363)
at
com.itextpdf.text.pdf.parser.PdfReaderContentParser.processContent(
PdfReaderContentParser.java:41)
at com.itextpdf.text.pdf.parser.PdfTextExtractor.getTextFromPage(
PdfTextExtractor.java:73)
at com.itextpdf.text.pdf.parser.PdfTextExtractor.getTextFromPage(
PdfTextExtractor.java:88)
Thanks!
American Express made the following annotations on Fri Feb 11 2011 17:39:24
******************************************************************************
"This message and any attachments are solely for the intended recipient and may
contain confidential or privileged information. If you are not the intended
recipient, any disclosure, copying, use, or distribution of the information
included in this message and any attachments is prohibited. If you have
received this communication in error, please notify us by reply e-mail and
immediately and permanently delete this message and any attachments. Thank
you."
American Express a ajouté le commentaire suivant le Fri Feb 11 2011 17:39:24
Ce courrier et toute pièce jointe qu'il contient sont réservés au seul
destinataire indiqué et peuvent renfermer des renseignements confidentiels et
privilégiés. Si vous n'êtes pas le destinataire prévu, toute divulgation,
duplication, utilisation ou distribution du courrier ou de toute pièce jointe
est interdite. Si vous avez reçu cette communication par erreur, veuillez nous
en aviser par courrier et détruire immédiatement le courrier et les pièces
jointes. Merci.
******************************************************************************
-------------------------------------------------------------------------------
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
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