We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

[Bug] System.IndexOutOfRangeException when ExtractText


The exception is permanent with attached pdf.
Please help check, thanks.


NuGet package: Syncfusion.Pdf.WinForms 16.3.0.36

Code:

// Load an existing PDF using PdfLoadedDocument class.
PdfLoadedDocument ldoc = new PdfLoadedDocument(@"test1.pdf");
// Loading Page collections
PdfLoadedPageCollection loadedPages = ldoc.Pages;
var page = ldoc.Pages[0] as PdfLoadedPage;
var list = new List<TextData>();
var s = page.ExtractText(out list);  // Exception here: System.IndexOutOfRangeException

2 Replies

LH Lofrank Hu November 30, 2018 03:00 PM UTC

Add attachment.

Attachment: test1_adf97c25.zip


DB Dilli Babu Nandha Gopal Syncfusion Team December 3, 2018 12:21 PM UTC

Hi Lofrank, 

Greetings from Syncfusion support. 

We can reproduce the issue “IndexOutOfRange exception is thrown while extracting the text from the PDF document”. The issue fix for this issue will be included in our upcoming main release Essential Studio 2018 Volume 4 which is estimated to available by mid of December 2018. 

Regards, 
Dilli babu. 


Loader.
Live Chat Icon For mobile
Up arrow icon