On Tue, Jan 31, 2012 at 4:16 PM, Kevin Day <ke...@trumpetinc.com> wrote: > ok - I tested your PDF in the Java version of iText (latest code from HEAD) > and it does *not* fail. Given the stack trace, I'm pretty sure that this is > an issue that has been fixed - basically, if the text render operation had > an empty string, we were winding up with an index out of bounds exception. > Latest Java code definitely fixes that issue - I'm not sure where things are > at with rolling that into the C# code base.
Thank you - I downloaded the latest from SVN, and indeed the test file I submitted previously works without problem too. Another file I tested but didn't submit due to large file size still doesn't work with the lastest C# build, though. If you have time, it's located here: http://www.navigon.com/export/sites/default/common/Download/Manual/PNA/NAVIGON70/English_manual.pdf stacktrace from that file with latest SVN C# build: ============================================= Unhandled Exception: System.IndexOutOfRangeException: Index was outside the bounds of the array. at iTextSharp.text.pdf.CMapAwareDocumentFont.GetWidth(Int32 char1) at iTextSharp.text.pdf.parser.TextRenderInfo.GetStringWidth(String str) at iTextSharp.text.pdf.parser.TextRenderInfo.GetUnscaledBaselineWithOffset(Single yOffset) at iTextSharp.text.pdf.parser.LocationTextExtractionStrategy.RenderText(TextRenderInfo renderInfo) at iTextSharp.text.pdf.parser.PdfContentStreamProcessor.DisplayPdfString(PdfString str) at iTextSharp.text.pdf.parser.PdfContentStreamProcessor.InvokeOperator(PdfLiteral oper, List`1 operands) at iTextSharp.text.pdf.parser.PdfContentStreamProcessor.ProcessContent(Byte[] contentBytes, PdfDictionary resources) at iTextSharp.text.pdf.parser.PdfReaderContentParser.ProcessContent[E](Int32pageNumber, E renderListener) at iTextSharp.text.pdf.parser.PdfTextExtractor.GetTextFromPage(PdfReader reader, Int32 pageNumber) at PdfTextExtractorTest.Main(String[] args) ============================================= Thank you! ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ 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