Ok, thanks for that. But interestingly enough, when I use iText 5.1.1 it
doesn't have that problem with the same original PDF.
I was using iText 2.1.7 before.
Thanks again,
-Jac
On Fri, Jul 8, 2011 at 11:29 AM, Dean Johnson <[email protected]> wrote:
> Try this one with the font embedded.
> _________________________________________________________________
> *Dean R. Johnson* | PrePress Tech Support | RR Donnelley, Wetmore Plant
> 1645 W. Sam Houston Pkwy. N. | Houston, TX 77043
> Phone: 713.300.2117 | Fax: 713.300.4582
> [email protected] | www.rrd.com | www.wetmore-printing.com
>
>
>
>
> On Fri, Jul 8, 2011 at 1:19 PM, Joseph Schmoley <[email protected]>wrote:
>
>> Folks,
>>
>> I'm getting this exception on a couple of different files I've tried to
>> read using PdfContentReaderTool. I've attached one of them.
>>
>> java com.lowagie.text.pdf.parser.PdfContentReaderTool non-00.pdf
>>
>> java.lang. ArrayIndexOutOfBoundsException: Invalid index: 02
>> at com.lowagie.text.pdf.CMapAwareDocumentFont.decodeSingleCID(Unknown
>> Source)
>> at com.lowagie.text.pdf.CMapAwareDocumentFont.decode(Unknown
>> Source)
>> at
>> com.lowagie.text.pdf.parser.PdfContentStreamProcessor.decode(Unknown
>> Source)
>> at
>> com.lowagie.text.pdf.parser.PdfContentStreamProcessor.displayPdfString(Unknown
>> Source)
>> at
>> com.lowagie.text.pdf.parser.PdfContentStreamProcessor$ShowTextArray.invoke(Unknown
>> Source)
>> at
>> com.lowagie.text.pdf.parser.PdfContentStreamProcessor.invokeOperator(Unknown
>> Source)
>> at
>> com.lowagie.text.pdf.parser.PdfContentStreamProcessor.processContent(Unknown
>> Source)
>> at
>> com.lowagie.text.pdf.parser.PdfTextExtractor.getTextFromPage(Unknown
>> Source)
>> at com.lowagie.text.pdf.parser.PdfContentReaderTool.
>> listContentStreamForPage(Unknown Source)
>> at
>> com.lowagie.text.pdf.parser.PdfContentReaderTool.listContentStream(Unknown
>> Source)
>> at com.lowagie.text.pdf.parser.PdfContentReaderTool.main(Unknown
>> Source)
>>
>> The file opens just fine in Acrobat reader. I've also used PDF Analyzer
>> tool on it and it's able to open and read it as well showing nothing out of
>> the ordinary.
>>
>> I'd really appreciate someone letting me know what could be wrong with the
>> PdfContentReaderTool.
>>
>> Thanks,
>>
>> -Jac
>>
>>
>>
>> ------------------------------------------------------------------------------
>> All of the data generated in your IT infrastructure is seriously valuable.
>> Why? It contains a definitive record of application performance, security
>> threats, fraudulent activity, and more. Splunk takes this data and makes
>> sense of it. IT sense. And common sense.
>> http://p.sf.net/sfu/splunk-d2d-c2
>> _______________________________________________
>> 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
>>
>
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> 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
>
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
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