Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Index and length must refer to a location within the string.

$
0
0
Hi Team
I am trying to get all the lines from the pdf but I got error like "Index and length must refer to a location within the string." This error is not thrown in all pages only in some pages

TextFragmentAbsorber textFragmentAbsorber = new TextFragmentAbsorber("[^\r\n]+"); TextSearchOptions textSearchOptions = new TextSearchOptions(true); textFragmentAbsorber.TextSearchOptions = textSearchOptions; pdfDocument.Pages.Accept(textFragmentAbsorber);


Thanks and Regards
Balamurugan V

Viewing all articles
Browse latest Browse all 3131

Trending Articles