Help with searching key words in PDF and listing links of pages where keyword is found using VB.NET


How do I search a PDF file and list a link to all the pages where the key word is found, or is there a better approach?


Who is Participating?
regmigrantConnect With a Mentor Commented:
PDF doesn't have a pre-defined structure for the holding of text values as it 'draws' pages so you will need to either code a full blown PDF interpreter or use a third part add-on such as pdfshark or (which is free)

Your mileage will vary unless you have control over the incoming pdf
vcharlesAuthor Commented:
Thank You for the information.

Joe Winograd - EE Fellow & MVEDeveloperCommented:
Hi Victor,

I realize that you already closed this question, but I want to point out that if the PDF file has text in it (such as a PDF Normal file or a PDF Searchable Image file) then it is possible to search the file for a string and identify the pages where the string is found. Take a look at this EE question:

If you'd like more information about the solution, please contact me at the email address in my profile. Regards, Joe
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.