cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

how to get the bookmarking feature in the PDF when a xml document is published in arbortext editor?

gdasari
1-Newbie

how to get the bookmarking feature in the PDF when a xml document is published in arbortext editor?

how to get the bookmarking feature in the PDF when a xml document is published in arbortext editor?

We are using *.fos files to publish our documents not the *.style sheets.

Message was edited by: Ganesh Dasari

2 REPLIES 2

Hi,

To get PDF bookmarks do the following in Arbortext Styler

1. Create a new Table of Contents or use and existing one

2. Check the box Use for PDF Bookmarks

This will assign the TOC to the bookmarks in the PDF.

If you want to have the bookmarks open when the PDF opens, go to File-Stylesheet Properties->Print/PDF and check "Limit PDF bookmark Levels opened initially."

Hope that helps!

-Jeff

cleccese
6-Contributor
(To:gdasari)

Check out the help on this, here are some tips:

For bookmarks to appear in pdf you must use File->Compose->PDF

To increase the default PDF bookmark character limit from 64 to 128, put this in an .acl file in your custom/init folder:


#increases PDF bookmark character limit from default 64 to 128
$main::pdf_bookmark_clip=128;

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Declare some variables:

<stringdecl textid="doc-title-bookmark.txt">
<stringdecl textid="main-toc-bookmark.txt" hotlink="1">
<stringdecl textid="vol-bookmarks.txt" hotlink="1">
<stringdecl textid="vol-title-bookmark.txt" hotlink="1">
<stringdecl textid="vol-toc-bookmark.txt" hotlink="1">
<stringdecl textid="chapter-bookmarks.txt" hotlink="1">
<stringdecl textid="chapter-title-bookmark.txt" hotlink="1">
<stringdecl textid="wp-bookmarks.txt" hotlink="1">
<stringdecl textid="wp-title-bookmark.txt" hotlink="1">
<stringdecl textid="wp-title-clean.txt">

In your top level eic:

<att>
<specval attname="print-only" attloc="system-var" attval="#ANY">
<charsubset>
<usetext source='!<atidmd:DocumentMetaData source="atend"><atidmd:DocView mode="bookmarks" fit="fitPage" destination=""></atidmd:DocView>
</atidmd:DocumentMetaData>!' placemnt="before"></usetext>
</charsubset>
</att>

<att>
<specval attname="print-only" attloc="system-var" attval="#ANY">
<charsubset>
<usetext
source="!<atidmd:DocumentMetaData>
<atidmd:DocInfo>
<atidmd:Entry>
<atidmd:Key>Title</atidmd:Key>
<atidmd:Value>!,tmnocmn,!</atidmd:Value>
</atidmd:Entry>
</atidmd:DocInfo>
<atidmd:Outline><atidmd:Bookmark>!,doc-title-bookmark.txt,!<atidmd:Bookmark>!,main-toc-bookmark.txt,!</atidmd:Bookmark><atidmd:Bookmark>!,vol-bookmarks.txt,!</atidmd:Bookmark></atidmd:Bookmark>
</atidmd:Outline>
</atidmd:DocumentMetaData>!" placemnt="after"></usetext>
</charsubset>
</att>

I had Volumes, Chapters (children of Volumes) and WPs (children of Chapters)

Title of Document:

<savetext textid="doc-title-bookmark.txt"
conrule="!<atidmd:Title>!,tmnocmn,!</atidmd:Title>!" placemnt="after">
<savetext textid="vol-title-bookmark.txt"
conrule="!<atidmd:Title>Volume 1</atidmd:Title>!" placemnt="after">

Volume eic:
<savetext textid="vol-title-bookmark.txt" conrule="!<atidmd:Title>!,volstrg,!</atidmd:Title>!" placemnt="after">

Vol-rear eic:
<savetext textid="vol-bookmarks.txt" conrule='!<atidmd:Bookmark state="closed">!,vol-title-bookmark.txt,vol-toc-bookmark.txt,chapter-bookmarks.txt,!</atidmd:Bookmark>!' placemnt="after" append="1">
<savetext textid="chapter-bookmarks.txt" conrule="\\" placemnt="after">

Chapter eic:

<savetext textid="chapter-title-bookmark.txt" conrule="!<atidmd:Title>Chapter !, modulectr,\ &ndash; \,imtitle,\, \,titlename1,!</atidmd:Title>!" placemnt="after">
<savetext textid="wp-bookmarks.txt" conrule="\\">
<savetext textid="chapter-bookmarks.txt" conrule='!<atidmd:Bookmark state="open">!, chapter-title-bookmark.txt,wp-bookmarks.txt,!</atidmd:Bookmark>!' placemnt="after" append="1">

WP eics:

This strips out any child tags in the savetext so they don't appear in the bookmark:

<savetext textid="wp-title-clean.txt" conrule="#XPATHSTRING(normalize-space(.))#XPATH">

otherwise just use

<savetext textid="wp-title-clean.txt" conrule="#CONTENT">

<savetext textid="wp-title-bookmark.txt" conrule="!<atidmd:Title> WP !,wpseqno,\ &ndash; \,wpsec,wp-title-clean.txt,!</atidmd:Title>!" placemnt="after">
<savetext textid="wp-bookmarks.txt" conrule='!<atidmd:Bookmark state="open">!,wp-title-bookmark.txt,!</atidmd:Bookmark>!' placemnt="after" append="1">

Top Tags