We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

ArgumentOutOfRangeException with TextFragmentAbsorber

Hey,

we have the same issue when using regular expressions. More precisely we are using this TextFragmentAbsorber …

new Aspose.Pdf.Text.TextFragmentAbsorber("[\w]+", new TextSearchOptions(true));

… to get all words out of the attached pdf document but receiving the same ArgumentOutOfRangeException:

System.ArgumentOutOfRangeException
  HResult=0x80131502
  Nachricht = Der Index lag außerhalb des Bereichs. Er darf nicht negativ und kleiner als die Sammlung sein.
  Quelle = mscorlib
  Stapelüberwachung:
   bei System.Globalization.CompareInfo.IndexOf(String source, String value, Int32 startIndex, Int32 count, CompareOptions options)
   bei System.Globalization.CompareInfo.IndexOf(String source, String value, Int32 startIndex, CompareOptions options)
   bei Aspose.Pdf.Text.TextFragmentAbsorber.(    , [] )
   bei Aspose.Pdf.Text.TextFragmentAbsorber.Visit(Page page)
   bei Aspose.Pdf.Page.Accept(TextFragmentAbsorber visitor)
   bei AHelper.Pdf.Page.GetTextFragmentsCore(TextFragmentAbsorber absorber) in C:\_VS.NET\Shared\DocumentHelper\AHelper\Pdf\Page.vb: Zeile83

We are using Aspose.Pdf 18.8.

Are there any news regarding this issue? Or is there another possibility to just receiver the TextFragment for any full word?

Regards

Mark

@bruegmann

Thank you for contacting support.

Please note that your exception is different than the issue you have referred to, so we have made a separate topic out of it. This problem appears to be file specific and a ticket with ID PDFNET-45324 has been logged in our issue management system for further investigations and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.

The issues you have found earlier (filed as PDFNET-45324) have been fixed in Aspose.PDF for .NET 20.4.