Link to home
Start Free TrialLog in
Avatar of joshcallahan1
joshcallahan1

asked on

Search PDF for list of words and Create a Bookmark with Javascript

I have a list of about 200 different strings.  I have a large PDF file (about 1600 pages).  I'm looking for a java script that will search the document for each of these strings and when it gets a match I need it to create a bookmark, I'm running Acrobat X Pro.  

I'm not that familliar with Java Script but I can understand it.  If you could help me with different elements that would be helpful.

need to know how to bring the strings into the script and loop through them, also need to know how to search for them and then to create the bookmark.  

Not an easy task for me. I'm new to the PDF development community. Thanks,

j
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

I do not believe there is an API to the PDF internals accessible to client side JavaScript

Perhaps Visual Basic for Applications is what you are looking for.

You can add JavaScripts to the PDF itself, but I doubt it can generate a bookmark.

Another place to ask this question is http://forums.adobe.com/community/acrobat/acrobat_scripting
Avatar of joshcallahan1
joshcallahan1

ASKER

I have created bookmarks with java script using PDF Batch processing with Acrobat X pro
ASKER CERTIFIED SOLUTION
Avatar of Karl Heinz Kremer
Karl Heinz Kremer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
"...is wrong" - only on my doubt that embedded JS could create bookmarks

You are referring to embedded javascript inside the pdf.
Not in a script on the HTML page where the pdf id embedded...

http://www.justskins.com/forums/addlinks-17575.html