Searching for text in a pdf from Access

@

@RobinW

I am currently using 2007 but will be developing a new Access db in 2003 and
am wanting to know about the Acrobat object model.

I am trying to create a search from Access in a list of Adobe Acrobat 8.0
files for a particular word or phrase. The results of this search will be
written into a table and timestamped and including the search string for
future reference.

I have included the references for Acrobat into the VBE: 1) Adobe Acrobat
8.0 Type Library and 2) Acrobat Access 3.0 Type Library and messed around
with them a bit with the following code:

Public Sub AcrobatTest()

Dim acbDoc As Acrobat.AcroAVDoc
Dim i As Integer

Set acbDoc = "E:\drivers\printer\X1100\pubs\ENGLISH\LXBKuser.pdf"

i = 0

With acbDoc
Do While .FindText("printer") = True
If .FindText("printer") = True Then
i = i + 1
End If

Loop
End With

End Sub

''

However, I find that my usage of the object leaves something to be desired
and would like help on its usage. I am only guessing that these references
are correct but it seems that the above is on the right track although with
this I could be creating an infinite loop etc.
 
L

Larry Daugherty

There's a chance that you'd find something useful using the Object
Browser in Access in your usage issues.

As far as getting information about the Acrobat Object Model, Acrobat
help files, Adobe and Acrobat newsgroups or www.adobe.com

*This* newsgroup is about *Access*.

HTH
 
Top