Search PDF for String.....

themanof83

Registered User.
Local time
Today, 12:40
Joined
May 1, 2008
Messages
73
Hi all,

I am trying to put together a function that will perform the following function:

1. Search through a PDF and look for the word 'PASS'
2. Return a flag if the words are found and also the number of times they appear.

The main problem is that I'm searching for a word in a PDF file and obviously the word is encoded within the document!!

Thanks in advance.
 
I'm thinknig you may be able to string together a bunch of 'sendkeys' to do this. I did something similar a long time ago and the details escape me so that's about as much as I can help - :)
 
Or you can buy a tool that reads PDF files.
 
well it's still easily achieved by sendkeys or manulay :) ,in adobe acrobat, V activates text mode , Ctrl+A selects all text , Ctrl+C copies it , later assigning clipboard to a string or textbox and do whatever via Instr function.(find occurance , add 1 to count variable , start from occurance position + 1 , find another , add another 1 to count variable , blas blas)
hopefully you are talking about latin font though as for other languages the acquired text will contain plenty of rubbish mind you some of the text might be stored in picture format.
 
IRIS, perhaps. I don't really know of many.

I researched IRIS for this recently and they have an API that will allow you to interact with it via your custom program.
 

Users who are viewing this thread

Back
Top Bottom