Code
Hello
How can search for a word within the PDF file using C # code
So give me a word and the page number where the existingHello
How can search for a word within the PDF file using C # code
So give me a word and the page number where the existingKnow the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Leon DRank #851 · 2.6K reputationPosted Jan 19, 2017, 11:07 PM EST
Mohamed AbedallahRank #2,074 · 697 reputationPosted Jan 26, 2017, 6:38 AM EST
If the PDF pages consist of text only, you can parse the text using any SDK that has PDF parser feature and then search the returned text for the word.
These two solutions can be done easily using LEADTOOLS SDK. For more information see this project:
https://www.leadtools.com/blog/document-imaging/ocr/directory-word-search-images-documents-25-projects-25-days/
Disclaimer: I work for the company that created this library.