Hey Adepters,
I hope somebody out there can help me with PDF
Bookmark generation.
Actually, generating bookmarks isn't the problem.
The problem is ensuring that all the bookmarks
actually work as links.
I'm trying to get PDF bookmarks based on "hidden"
content. By that I mean that I have styled the
elements in question as "title" so they'll get
picked up, but I have set the Font Property -
Hidden to "yes" because the bookmark text is not
actually present in the XML and should not appear
in the pages.
Let me provide an example.
Here are the PDF bookmarks for Appendix B:
- Reference Drawing Groups
- Group A
- Data
AAZE
ACVR
ACVS
-Drawings
- Group B
- Data
ACVT
AASL
AASB
- Drawings
- Group C
- Drawings
- Group D
- Drawings
The phrase "Reference Drawing Groups" doesn't
appear anywhere in the XML. The phrase "Group A"
is part of the page set header and, therefore,
is not style-able as "title".
"Data" and "Drawings", likewise are not part of
the content. They represent subsections of the
appendix. The lowest-level bookmarks are taken
right from the content and *could* work as
bookmarks. I say "could" because I'm using a
gentext table with insert-element-content to get
fine control over the alignment of this (inline)
data (but I digress - that's a problem for another
time).
In order to force bookmarks for these strings, I
made up a new element, put the string
constants into them, and styled them as "title".
Since these strings aren't supposed to appear in
the pages, I set them as "hidden". That seemed to
work well. I saw all the bookmarks, properly nested.
Unfortunately, nothing happens when you click on a
bookmark that's derived from "hidden" content.
I've tried this both in FOSI and XSL. I've tried
this using the usual DCF approach and also using
the XSL Table-of-Contents approach (which, by the
way, gave me good control over context-specific
inclusion).
So. What do you think? Am I trying to cut down the
mightiest tree in the forest with a herring, or am
I just using the wrong fish-wielding technique?
Any suggestions would be appreciated.
Thanks.
Dan Bono