Patagames Software Support Forum
»
Pdfium.Net SDK
»
Common Questions
»
Is there any way to find and highlight text in WPF PDFviewer?
Rank: Newbie
Groups: Registered
Joined: 1/26/2016(UTC) Posts: 5  Location: Moscow
|
We need to search for a specified (exact) text in PDF and highlight it in the viewer. Is there any way to do this?
|
|
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 1,138
Thanks: 10 times Was thanked: 133 time(s) in 130 post(s)
|
Yes, of course. Please look at PdfSearch Class for asynchronous search, PdfText.Find Method and PdfFind Class for synchronous search and PdfViewer.HighlightText Method for highlight found text. Also you can see the implementation of asynchronous search and scrolling down to the found record in the source code (PdfToolStripSearch.cs). This is the toolbar that implement the search functionality for WinForms PdfViewer. For WPF you can do likewise if you wish.
|
|
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 1/26/2016(UTC) Posts: 5  Location: Moscow
|
|
|
|
|
|
|
Patagames Software Support Forum
»
Pdfium.Net SDK
»
Common Questions
»
Is there any way to find and highlight text in WPF PDFviewer?
Forum Jump
You can post new topics in this forum.
You can reply to topics in this forum.
You can delete your posts in this forum.
You can edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close