Spire.PDFViewer is a powerful PDF Viewer component for .NET. It allows developers to load PDF document from stream, file and byte array.

Thu Nov 23, 2017 9:30 am

Hi Mark,

Thanks for waiting.
Now the new feature has been implemented in Spire.Office Platinum (DLL Only) Version:2.16.23.
Sample code for your reference:
Code: Select all
PdfDocumentViewer.SearchText(string searchText, Color highlightColor, bool ignoreCase)

Looking forward to your feedback.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Thu Feb 15, 2018 2:40 am

PdfDocumentViewer.SearchText() appears to always search from the beginning of the document. Is there any way to specify where to start searaching?

Thanks,

David
david.muse@firstworks.com

davidleemuse
 
Posts: 1
Joined: Wed Mar 09, 2016 7:29 pm

Thu Feb 15, 2018 3:06 am

Dear David,

Sorry, there is no way to specify where to start searching.

Sincerely,
Amy
E-iceblue support team
User avatar

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

Thu May 03, 2018 8:31 am

I am implementing the search as
this.pdfViewer.SearchText("<text to be searched", Color.Red,true);

but the result is "covering" the search area .... I am using an evaluation copy is this the problem?
Please see attachment
Thanks,
M

leolane
 
Posts: 4
Joined: Wed May 02, 2018 3:49 pm

Thu May 03, 2018 9:20 am

Dear leolane,

Thanks for your inquiry.
I have reproduced the issue and logged it in our bug tracking system. We will let you know once there is any update.
Sorry for the inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Fri May 04, 2018 1:50 am

Dear leolane,

Thanks for sharing your solution(SearchText("", Color.FromArgb(0x60,Color.Red),true)) in other post.
If there is any question, please feel free to contact us.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Tue Apr 06, 2021 10:47 am

Hello Mark,

Greetings from E-iceblue!
Glad to inform you that we just released Spire.Office Platinum(Hotfix) Version:6.4.0 to solve the issue of text highlighting offset, please download it and test it on your side. Looking forward to your testing result.
Website link: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget link: https://www.nuget.org/packages/Spire.Office/6.4.0

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Fri Apr 09, 2021 3:16 am

Hello Mark,

Greetings from E-iceblue.
Does this hotfix solve your issue? Could you please give us some feedback at your convenience?

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Fri Nov 04, 2022 11:25 am

Hello,
I recon that there is no way to jump to page where first search results is? Or get access to some SearchResult collection so that I could jump to a page where the result is highlighted and then jump to next result's page in that collection?

vmk_devnet
 
Posts: 3
Joined: Thu Oct 13, 2022 8:22 am

Mon Nov 07, 2022 11:00 am

Hello vmk_devnet,

Thanks for your inquiry.
Our Spire.PdfViewer does not support the jump function at present. I tried to achieve the similar effect by combining with our Spire.PDF. But I encountered some issues when doing the tests, I will do more investigations, once the demo is available, I will provide it for your reference.

Sincerely,
Simple
E-iceblue support team
User avatar

Simple.Li
 
Posts: 248
Joined: Fri Jul 01, 2022 2:33 am

Fri Nov 11, 2022 9:48 am

Hello vmk_devnet,

Thanks for your patience.
Because our latest Spire.PDF Pack(Hot Fix) Version:8.11.0 made some adjustments for the searching function. At present we are unable to achieve the similar effect when combining with it. Anyway, we have added the searching jump function as a new feature into the upgrade list of Spire.PDFViewer. Once it is available, we will let you know asap. Thanks for your understanding.

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Return to Spire.PDFViewer