Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to search and highlight pdf's keyword programmatically

Tags:

c#

.net

pdf

i've tried two different component to integrate pdf file in windows form application (c#). the above mentionated component are PDFSharp and Sloppycode webBrowserEx. Now, both of them work fine, but I'm not able to search and highlight programmatically full text defining by user through a textBox.

Can anyone give me some suggest to achieve my purpose?

Thanks in advance.

like image 942
bit Avatar asked Jan 25 '11 19:01

bit


People also ask

Can you search a PDF for highlighted text?

Step 1: Highlight Text or Add Comments if NeededTo search the highlighted text, you need to highlight the text first, so you'll be able to search it later. To do so, click "Comment" and then the "Highlight" icon.

How do you highlight text in a PDF using Python?

Iterate throughout the selected pages of the input file and split the current page into lines. Search for the string within the page. Apply the corresponding action (i.e "Redact" , "Frame" , "Highlight" , etc.)

Can you highlight text in Google Drive PDF?

Annotate PDF Files With Google Drive CommentsGoogle recently added the ability to highlight PDFs in Google Drive natively. When you're looking at a PDF in Drive, click the Add a Comment icon at the top left. It looks like a speech bubble with a plus icon in it.


1 Answers

I found this answer to help me when I was working with PDFs. Not sure if you seen it yet but it may help you. I went with iTextSharp.

how to highlight a text or word in a pdf file using iTextsharp?

hope it helps.

like image 127
Tony Avatar answered Nov 07 '22 07:11

Tony