#bookmark xrefs in pdf only jump to the top of the topic

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
bleebs
Propeller Head
Posts: 23
Joined: Tue May 12, 2009 6:26 pm
Location: Melbourne, Downunder

#bookmark xrefs in pdf only jump to the top of the topic

Post by bleebs »

I use the following code in a PDF output, and the generated page numbers in the PDF display the page number of the top level topic (and go there too when clicked) i.e. to the top of Reports.htm, and never jump to the #DistributingReports bookmark way down in that same topic. All the content after # just disappears in the output as if it never existed!

Here's my topic code...

Code: Select all

<MadCap:xref href="Reports.htm#DistributingReports" class="pageref"> (p.1)</MadCap:xref>
And here is my PDF stylesheet's CSS code for that xref pageref class:

Code: Select all

{
MadCap|xref.pageref
	mc-format: ' (p.{page})';
	text-decoration: none !important;
}
Can anyone help or advise me please?

*ADDED* And the truly annoying thing about this is that I can see the #bookmarks flaunting themselves in the bookmarks pane when I select "Include non-TOC bookmarks in the bookmarks pane!



Now just to be precise about this, every xref of this class is paired with an equivalent link icon which is only displayed in online help - the bookmark link works as intended in this output. I'm assuming this can't interfere with the pdf output. The code that goes straight after the xref is...

Code: Select all

<a href="ug_cc_id4229Reports.htm#DistributingReports"><img class="xreficon" MadCap:conditions="Default.ScreenOnly" src="../common/xrhlp.gif" /></a>
Some humans would do anything to see if it was possible to do it. If you put a large switch in some cave somewhere, with a sign on it saying 'End-of-the-World Switch. PLEASE DO NOT TOUCH', the paint wouldn't even have time to dry.
Sir Terry Pratchett
Judith
Propeller Head
Posts: 43
Joined: Wed Jan 21, 2009 8:28 am
Location: Ashtead, Surrey, UK

Re: #bookmark xrefs in pdf only jump to the top of the topic

Post by Judith »

When inserting a cross-reference for PDF output, Flare will always refer to the nearest item in the ToC specified in the target. If the xref is to a bookmark within a topic, you get the top of topic. If the xref is to a sub-heading in a topic, Flare will xref the sub-heading if it's mc-heading level is non-zero or the top of topic otherwise. Note, however, that setting the mc-heading means the sub-heading will appear in the bookmarks pane and in the generated pdf.

Hyperlinks work differently - you can link to any bookmark in the pdf. But you can't put a page number in a hyperlink as far as I know.


Judith
Post Reply