Page 1 of 1
Target a page according to bookmark presence?
Posted: Fri Nov 09, 2012 12:09 am
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?
Target a page according to bookmark presence?
Posted: Mon Nov 12, 2012 2:53 am
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!
Target a page according to bookmark presence?
Posted: Mon Nov 12, 2012 3:45 pm
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