Acrobat User Community Forums

You are not logged in.     Log in to your AUC account.     Don't have an account? Sign up today

#1 2007-08-21 17:44:53

alacava
Member
Registered: 2007-08-21
Posts: 0

Printing Bookmarks

With everything that Adobe can do, can we print bookmarks?  I mean the actual index you've set up to bookmark a document?  We have several documents that need to be bookmarked in the same style and don't always remember how we set things up.  Thanks.


My Product Information:
Acrobat Pro 8 / Windows

Offline

 

#2 2007-08-21 18:20:22

alihanyaloglu
Member

Registered: 2007-04-26
Posts: 14

Re: Printing Bookmarks

Although there's no way to do this directly in Acrobat, there is a workaround via JavaScript. There is a sample in the Acrobat JavaScript API Reference, which can be viewed and dowloaded from http://www.adobe.com/devnet/acrobat. Here's the code that can be run from most events, such as a custom menu selection or a page action. It will dump the bookmarks and their hierarchy into the Acrobat JavaScript console, which you can copy and paste. Roll up your sleeves now...

Code:

function DumpBookmark(bkm, nLevel)
{
var s = "";
for (var i = 0; i < nLevel; i++) s += " ";
console.println(s + "+-" + bkm.name);
if (bkm.children != null)
for (var i = 0; i < bkm.children.length; i++)
DumpBookmark(bkm.children[i], nLevel + 1);
}
console.clear(); console.show();
console.println("Dumping all bookmarks in the document.");
DumpBookmark(this.bookmarkRoot, 0);

Hope that helps,

Ali Hanyaloglu

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

AcrobatUsers.com  >>  User Groups • News • Events • Articles • Blogs • How To • Resources • Member Log in