Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Fri Sep 27, 2019 7:57 pm

Hello,

I'm trying to execute find text, and it's making an exception... "index out of range "

Look, the word "RETENÇÕES FEDERAIS" exist in PDF (attached), but doesn't work try to find it.

using (PdfDocument pdf = new Spire.Pdf.PdfDocument())
{
pdf.LoadFromFile(p_PDF);
PdfPageBase page = pdf.Pages[0]
}


foreach (PdfTextFind text in page.FindText("RETENÇÕES FEDERAIS", TextFindParameter.WholeWord).Finds)
{

...

}


OBS: I'm using version 5.8.16.2040

I tried updating to 5.9.6.. but this version throws an exception when I call..

FindText(vsubTitulo, TextFindParameter.None).Finds.Count()

Dicipulofer
 
Posts: 24
Joined: Wed Apr 08, 2015 1:41 pm

Sun Sep 29, 2019 4:03 am

Hi,

Thanks for your inquiry.
Sorry that I didn't find the attached Pdf file here, could you please upload it again or send to us([email protected]) via email?

Best wishes,
Amber
E-iceblue support team
User avatar

Amber.Gu
 
Posts: 525
Joined: Tue Jun 04, 2019 3:16 am

Mon Sep 30, 2019 4:30 pm

Sent by e-mail.

Dicipulofer
 
Posts: 24
Joined: Wed Apr 08, 2015 1:41 pm

Mon Sep 30, 2019 4:31 pm

Uploaded again.

Dicipulofer
 
Posts: 24
Joined: Wed Apr 08, 2015 1:41 pm

Tue Oct 01, 2019 4:25 am

Hello,

Thanks for sharing your pdf file.
I have noticed the error “Error index out of range” when testing your pdf file. We are on our Chinese National Day holiday from Oct.1st to Oct.7th. I will forward your issue to our development team once we get back to the office on Oct 8, 2019.
Sorry for any inconveniences caused by us and we appreciate your support and understanding.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3044
Joined: Wed Jun 27, 2012 8:50 am

Mon Oct 14, 2019 7:05 pm

I noticed again in other PDF the error.

Trying to find
"PRESTADOR DE SERVIÇOS"

The filed is attached.

Dicipulofer
 
Posts: 24
Joined: Wed Apr 08, 2015 1:41 pm

Tue Oct 15, 2019 2:05 am

Hi,

Thanks for your information.
I have reproduced your issue and logged it into our bug tacking system. Once there is any progress, we will inform you.
Sorry for the inconvenience caused.

Best wishes,
Amber
E-iceblue support team
User avatar

Amber.Gu
 
Posts: 525
Joined: Tue Jun 04, 2019 3:16 am

Tue Oct 22, 2019 9:59 am

Hi,

Thanks for your patient waiting.
The issue that failed to find text has been fixed. Welcome to download and test Spire.PDF Pack(Hot Fix) Version:5.10.8.
The downloading link on our website: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget link: https://www.nuget.org/packages/Spire.PDF/5.10.8


Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3044
Joined: Wed Jun 27, 2012 8:50 am

Wed Oct 23, 2019 1:44 pm

amy.zhao wrote:Hi,

Thanks for your patient waiting.
The issue that failed to find text has been fixed. Welcome to download and test Spire.PDF Pack(Hot Fix) Version:5.10.8.
The downloading link on our website: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget link: https://www.nuget.org/packages/Spire.PDF/5.10.8


Sincerely,
Amy
E-iceblue support team



SOLVED !

Dicipulofer
 
Posts: 24
Joined: Wed Apr 08, 2015 1:41 pm

Thu Oct 24, 2019 1:41 am

Hi,

Thanks for your feedback. Glad to hear that your issue has been solved.
Feel free to contact us for further issues.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3044
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.PDF

cron