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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

[Bug] System.IndexOutOfRangeException when ExtractText

Thread ID:





141259 Nov 30,2018 02:49 PM UTC Dec 3,2018 12:21 PM UTC WinForms 2
Tags: PDF
Lofrank Hu
Asked On November 30, 2018 02:49 PM UTC

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

NuGet package: Syncfusion.Pdf.WinForms


// 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

Lofrank Hu
Replied On November 30, 2018 03:00 PM UTC

Add attachment.

Attachment: test1_adf97c25.zip

Dilli Babu Nandha Gopal [Syncfusion]
Replied On 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. 

Dilli babu. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon