Can I use markers to drive the bookmarks in PDF ?
I am creating an application for a large customer who needs better control over the bookmarks in their PDF output. So far, I have been able to generate PDF bookmarks from special paragraph tags. The problem is that the bookmarks do not always reflect the exact text of the titles that they point to. Also, the titles are not always given the same paragraph tag, depending on a lot of formatting rules that need to be applied.
As all of this is round tripping to XML, I have created XSLT to create fm_bookmark elements which contain the desired bookmark text and pick up a paragraph tag that makes them show up in the contents tab of the PDF at the right level. The paragraph tags "bookmark_level_1" etc. are made invisible by setting them to white font color and tiny (2pt is the minimum) font. The remaining problem is that it is a paragraph, even though it is invisible for the human reader. This means that spacing above and below the paragraph kicks in and offset the actual title from the top of the page. I could theoretically adjust the space above and space below to 0pt but when vertical justification kicks in, there will be empty space above the title anyway.
I have checked for markers that can take up the role of bookmark generators but there is no indication in the Bookmarks properties that any particular marker type will be picked up. Also, how to set the level of the bookmark is unclear to me. Maybe I am asking for too much but I don't believe I am the only one struggling with this problem.
Any hints about how to make this work without introducing tons of work ?
Thanks in advance
4everJang
