Forum How do I...?

Creating Bookmarks?

Dragontounge
Is is possible to create Acrobat Bookmarks in Prince?

Bookmarks as defined in this Adobe documentation:

http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7cc7.w.html
mikeday
Yes, by applying the bookmark-level property to an element. Prince applies this to HTML heading elements by default, so h1-6 elements will create a bookmark tree.
jamespaden
Mike, I just noticed that your message above conflicts with the stated documentation for PDF Bookmarks which says the default bookmark-level is "none". http://www.princexml.com/doc/pdf-bookmarks/. I had to find this page to figure out what was going on.

James

Try DocRaptor - PrinceXML web service and official PrinceXML partner

mikeday
Yes sorry, the default value for the CSS property is none, but the Prince default style sheet for HTML includes rules to apply it to the HTML heading elements:
h1 { font-size: 24pt; margin: 16pt   0; prince-bookmark-level: 1 }
h2 { font-size: 18pt; margin: 15pt   0; prince-bookmark-level: 2 }
h3 { font-size: 14pt; margin: 14pt   0; prince-bookmark-level: 3 }
h4 { font-size: 12pt; margin: 16pt   0; prince-bookmark-level: 4 }
h5 { font-size: 10pt; margin: 16.5pt 0; prince-bookmark-level: 5 }
h6 { font-size:  8pt; margin: 21pt   0; prince-bookmark-level: 6 }
relliott
Is it possible to disable the automatic display of bookmarks? Adobe Reader does this somehow, if you open a PDF then collapse the bookmarks so they are not displayed and then save the file, the next time you open it the bookmarks are not displayed.
mikeday
Does it work even if you make a copy of the file and open the copy? I mean, is the preference saved in the file, or does Acrobat remember it elsewhere?