Collapsing Bookmarks
- by Tim Dexter
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?>
<?collapse-bookmark:hide;2?>
<?collapse-bookmark:hide;3?>
Sample template and data here. Dont forget you need that 10.1.3.4.1 roll up!