![]() ![]() find the text and set the highlight color We can use page.FindText( string) method and foreach sentence to find specified text in entire PDF pages, save the search results in a PdfTextFind array, then highlight selected text by invoking find.ApplyHighLight() method: In this article, we will give solutions of how to find and highlight selected text in PDF files programmatically in C#. In order to confirm the location more conveniently, we need to highlight the selected text with background color while searching. Sometimes, we need to search the PDF file to get specific text, but there may be numerous results returned.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |