Target a page according to bookmark presence?

Post Reply
User avatar
wilsonj
Newbie
Posts: 19
Joined: Mon Apr 04, 2011 9:55 pm

Target a page according to bookmark presence?

Post by wilsonj »

It seems like an unusual question, but we have a situation where we would like to target a page for a particular action, identifying the page based on the presence of a bookmark.



It appears that javascript can identify bookmarks, but are there other ways to use bookmark information in a PDF to trigger actions?
Evan
Member
Posts: 30
Joined: Mon Feb 28, 2011 6:44 pm

Target a page according to bookmark presence?

Post by Evan »

I'm not sure if this can help but I think you should run a script in the acrobat configurator to have acrobat tell you more specific information.



I have find this acrobat javascript example that may help:



if ( bkmName != null ) {

var bkm = searchBookmarks(this.bookmarkRoot, 0, bkmName );

if ( bkm != null ) bkm.execute();

else app.alert("Bookmark not found");



Good luck!
dkelly
TOP CONTRIBUTOR
Posts: 628
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

Target a page according to bookmark presence?

Post by dkelly »

Acrobat scripting would be one method. I would also suggest PDFspy as a more general purpose solution. We have several customers using PDFspy to extract information from PDF files to make processing decisions.



For example, one customer wanted to rename the PDF based on some text inside of the PDF. We used PDFspy to locate and extract the text.



Sincerely,

Dwight Kelly

Apago, Inc.

www.apagoinc.com
Post Reply