Hi, I am using the new TextRenderInfo.GetCharacterRenderInfos method within my
own ITextExtractionStrategy.
But it always gives an exception:
Unhandled Exception: System.ArgumentOutOfRangeException: Index and length must
refer to a location within the string.
Parameter name: length
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length,
Boolean fAlwaysCopy)
at iTextSharp.text.pdf.parser.TextRenderInfo..ctor(TextRenderInfo parent,
Int32 charIndex, Single horizontalOffset)
at iTextSharp.text.pdf.parser.TextRenderInfo.GetCharacterRenderInfos()
at
PDFParser.PDFRenderer.iTextSharp.text.pdf.parser.IRenderListener.RenderText(TextRenderInfo
ti) in H:\scanman\pdf2x
ps\PDFRenderer.cs:line 68
at
iTextSharp.text.pdf.parser.PdfContentStreamProcessor.DisplayPdfString(PdfString
str)
at
iTextSharp.text.pdf.parser.PdfContentStreamProcessor.ShowText.Invoke(PdfContentStreamProcessor
processor, PdfLiter
al 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, ITextExtractionStr
ategy strategy)
at PDFParser.PDFRenderer..ctor(String input, String output) in
H:\scanman\pdf2xps\PDFRenderer.cs:line 47
at PDF2XPS.Program.Main(String[] args) in H:\scanman\pdf2xps\Program.cs:line
19
Regards
Ming Chen
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
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