On Tue, Jan 31, 2012 at 4:22 PM, Paulo Soares <psoa...@glintt.com> wrote: > I suspect that this is also fixed in the iTextSharp HEAD. In any case, the > Java and C# versions will be synchronized this weekend.
Yes, there's no problem when building from the latest SVN source code with the test file I had attached, thank you! While browsing sourceforge to get the code from SVN, I noticed someone else had submitted a similar bug report, ID #3474281. I tested with that file. Here's the stacktrace (using latest 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.ShowTextArray.Invoke(PdfContentStreamProcessor processor, PdfLiteral oper, List`1 operands) 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](Int32 pageNumber, E renderListener) at iTextSharp.text.pdf.parser.PdfTextExtractor.GetTextFromPage(PdfReader reader, Int32 pageNumber) at PdfTextExtractorTest.Main(String[] args) ======================================== Thanks Paulo! ------------------------------------------------------------------------------ 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