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 Dec 20, 2019 7:56 pm

I have a problem with ApplyHighLight not working with some PDFs. I have emailed an example to support@e-iceblue.com. Below is the code snippet:


Code: Select all
            PdfDocument pdf = new PdfDocument("test.pdf");

            if (pdf != null)
            {
                foreach (PdfPageBase page in pdf.Pages)
                {
                    foreach (PdfTextFind text in page.FindText("Delaware", true, true).Finds)
                    {
                        text.ApplyHighLight(System.Drawing.Color.Yellow);
                    }
                }

                pdf.SaveToFile("test_output.pdf");
            }

            pdf.Dispose();

wraydc
 
Posts: 130
Joined: Wed Apr 11, 2018 5:14 am

Mon Dec 23, 2019 3:46 am

Hi,

Thanks for your inquiry.
I tested your file with Spire.PDF Pack(Hot Fix) Version:5.12.15 and did notice the issue you mentioned, I have logged it into our bug tracking system. Once there is any progress, we will inform you. Sorry for the inconvenience caused.
And the method you used is out of date. Please use the new method as below.
Code: Select all
                    foreach (PdfTextFind text in page.FindText("Delaware",TextFindParameter.WholeWord).Finds)
                    {
                        text.ApplyHighLight(System.Drawing.Color.Yellow);
                    }

Best wishes,
Amber
E-iceblue support team
User avatar

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

Thu Jan 02, 2020 7:11 am

Amber, thanks for the response, I dropped you an email with an example PDF, the ApplyHighLight method does work, but there seems to be an issue with some PDFs. The examples that I have the first page seems to be the page where the problem appears.

I hope that this additional information helps,

Darren.

wraydc
 
Posts: 130
Joined: Wed Apr 11, 2018 5:14 am

Thu Jan 02, 2020 7:47 am

Hi Darren,

Thanks for your information.
Our Dev team is looking into your issue. We will let you know as soon as there is any update.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Jan 07, 2020 11:39 am

Just a quick check-in to see if there's anything else that I can do to help your dev team and to check that they have managed to repeat the problem.

Thanks in advance,

Darren.

wraydc
 
Posts: 130
Joined: Wed Apr 11, 2018 5:14 am

Wed Jan 08, 2020 4:06 am

Hi,

Thanks for your reply.
At present, we could only wait for our Dev team to fix the problem. Please share us little more time, once there is any progress, we will inform you ASAP.
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

Sun Jan 19, 2020 12:41 pm

Hi just wondering if there's any update on this issue.

Many thanks in advance,

Darren


Amber.Gu wrote:Hi,

Thanks for your reply.
At present, we could only wait for our Dev team to fix the problem. Please share us little more time, once there is any progress, we will inform you ASAP.
Sorry for the inconvenience caused.

Best wishes,
Amber
E-iceblue support team

wraydc
 
Posts: 130
Joined: Wed Apr 11, 2018 5:14 am

Mon Jan 20, 2020 2:20 am

Hi,

Thanks for your reply.
I checked the state of your issue in our bug tracking system, it is in the testing phase now. Once the test passes, we will inform you ASAP.
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 Feb 04, 2020 8:25 am

Hi, I appreciate its an extended holiday at the moment. Do you have an ETA for the completion of testing and release? I need to manage expectations at my end,

Thanks in advance,

Darren

wraydc
 
Posts: 130
Joined: Wed Apr 11, 2018 5:14 am

Tue Feb 04, 2020 9:00 am

Hi Darren,

We are just back from Chinese New Year(24/01/2020 - 02/02/2020). I checked your issues and sorry to say that we found some issues after testing. At this moment, we cannot provide the hotfix for you and our Dev team is stepping up fixing the found issues. Sorry that there is no ETA for the release. Anyway, if there is any good news, we will let you know.
Apologize for the inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Feb 11, 2020 4:50 pm

Just a quick check-in. Any update?

Thanks in advance,

Darren

Betsy.jiang wrote:Hi Darren,

We are just back from Chinese New Year(24/01/2020 - 02/02/2020). I checked your issues and sorry to say that we found some issues after testing. At this moment, we cannot provide the hotfix for you and our Dev team is stepping up fixing the found issues. Sorry that there is no ETA for the release. Anyway, if there is any good news, we will let you know.
Apologize for the inconvenience caused.

Sincerely,
Betsy
E-iceblue support team

wraydc
 
Posts: 130
Joined: Wed Apr 11, 2018 5:14 am

Wed Feb 12, 2020 10:14 am

Hello,

Thanks for your patient waiting.
Glad to inform that the issue is solved in Spire.Office Platinum (DLL Only) Version:5.2.0. Welcome to download it from the following link.
Our website: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget: https://www.nuget.org/packages/Spire.Office/5.2.0

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Mon Feb 17, 2020 6:22 am

Hi,

Hope you are doing well.
Did you try the hotfix? Has your issue been resolved?

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Wed Feb 19, 2020 12:11 am

Yes, it has resolved the issue. I do however get an error when using the DocumentView control in version 5.2 that doesn't occur when using the 5.1 version. Would you like me to raise this as a separate issue?

wraydc
 
Posts: 130
Joined: Wed Apr 11, 2018 5:14 am

Wed Feb 19, 2020 2:02 am

Hi,

Thanks for your feedback.
As for your new issue, please make sure you have removed all old Spire dlls before adding new dlls in your project. Below is the information of the dlls in Spire.Office V5.2.0 for your kind reference:
Spire.Doc.dll v8.2.4
Spire.Pdf.dll v6.2.1
Spire.XLS.dll v10.1.8
Spire.Email.dll v3.1.0
Spire.DocViewer.Forms.dll v5.1.1
Spire.PdfViewer.Forms.dll v5.1.4
Spire.PdfViewer.Asp.dll v5.1.4
Spire.Presentation.dll v5.1.3
Spire.Spreadsheet v4.1.0
Spire.OfficeViewer.Forms.dll v5.2.0
Spire.Barcode.dll v4.1.1
Spire.DataExport.dll v4.1.9
Spire.DataExport.ResourceMgr.dll v2.1.0,
Spire.Common.dll v3.2.2
Spire.License.dll v1.3.8

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.PDF

cron