This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] Problem with bookmarks and page breaks in PDF-output


On Thu, May 15, 2003 at 11:34:46AM +0200, Joachim Ziegler wrote:
> Hello,
> 
> according to Bob Stayton's "Using the XSLT Stylesheets" I do the 
> following to start every <sect1> on a new page.
> 
> <!-- force page break before sect1 -->
> <xsl:attribute-set name="section.title.level1.properties">
>    <xsl:attribute name="break-before">page</xsl:attribute>
> </xsl:attribute-set>
> 
> 
> But now the PDF bookmarks are incorrect (as viewed in Acrobat Reader): 
> When a <sect1> starts on page N, the bookmarks links to page N-1.
> 
> I am using stylesheets 1.60.1 and XEP 3.3.

It's worse than that.  The link from the table of contents
to the sections also land on the previous page.  That method
of doing the page breaks is not good.  It is putting
the break-before="page" property in a block nested in the
block that contains the section's id.  So the id is output,
then page breaks, leaving links to that page landing on
the previous page.

I need to figure out a better way to do section page breaks.

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs@sco.com

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]