Collapsing Bookmarks

Posted by Tim Dexter on Oracle Blogs See other posts from Oracle Blogs or by Tim Dexter
Published on Mon, 12 Apr 2010 10:17:21 -0700 Indexed on 2010/04/12 18:03 UTC
Read the original article Hit count: 335

I said I would tackle documenting some of the new features in the 10.1.3.4.1 roll up patch I mentioned last week. With the patch you can now set the default state of bookmarks (if you create them) in your PDF outputs. If your users prefer to see them all collapsed to the base level or may be collapsed to the second level to ease navigation; whatever they need. Its another opportunity for you to look like a star!

You of course need to start with a table of contents; then add the convert|copy to bookmarks command. You can then add the new collapse command to set the appropriate level in the bookmarks.

<?copy-to-bookmark:?> <?collapse-bookmark:show;2?> 
 <<< Table of Contents >>>
<?end convert-to-bookmark?>

The command allows you to expand or collapse the bookmarks as you need. Of course you will know how many levels you will have in the final output document.

The command takes the form:

<?collapse-bookmark:show|hide;level int?>

Some examples





<?collapse-bookmark:hide;1?>
bookmrks1.gif
<?collapse-bookmark:hide;2?>
bookmrks2.gif
<?collapse-bookmark:hide;3?>
bookmrks3.gif

Sample template and data here. Dont forget you need that 10.1.3.4.1 roll up!

© Oracle Blogs or respective owner

Related posts about BI Publisher Enterprise

Related posts about rtf