Welcome to the ASP.NET Core feedback portal. We’re happy you’re here! If you have feedback on how to improve the ASP.NET Core, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Hi,
On using ExtractText with the out parameter, it throws an index out of range exception.

On using ExtractText without parameters, it works normally.

Test Documents

// use files from Test Documents in "file" variable
string file;
try
{
  PdfLoadedDocument document = new PdfLoadedDocument(new FileStream( file, FileMode.Open, FileAccess.Read));
  foreach (PdfLoadedPage page in document.Pages)
  {
    page.ExtractText(out _);
  }
}
catch (Exception e)
{
  Console.WriteLine($"Error in extraction\n{e}");
}