extract text from pdf?

kenn.ohmysoul

New member
Joined
Jun 4, 2024
Messages
1
Programming Experience
1-3
Can someone help me extract specific text from pdf using vb.net and paste it to richtextbox. I'm sorry for this noob query, idk if its possible and if so. Mind posting a sample source code for me to start. Thank you!


I wanted to extract all DR numbers from pdf, just the number only.
 

Attachments

  • 9539593504 Accountable Form.pdf
    40 KB · Views: 6
You need a library to read the PDF, look into iText 7, DocNet or PdfPig - there are others too.

Once you have the page text use String methods or regular expressions to search. For example Split the text to lines and loop them, then use StartsWith or IndexOf to find the search string and the following number.
 

Latest posts

Back
Top