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?
Target a page according to bookmark presence?
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!
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!
-
- TOP CONTRIBUTOR
- Posts: 628
- Joined: Mon Nov 29, 2010 8:45 pm
- Location: Alpharetta GA USA
- Contact:
Target a page according to bookmark presence?
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
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