OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] Counting number of pages when generating PDF

There is no general solution in the stylesheets for this because you have to
put this special fo:block at the end of the flow of the last page-sequence
in the document.  But this depends on which element generates the last
page-sequence in a document, and that varies from document to document.  If
it is an index, then you need to customize the template for the index.  If
it is a glossary, then you need to customize it for glossary.  If it is an
appendix, then the customization needs to determine which appendix is the
last one.  Do you have a consistent last element in your document?

Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: <eze@maerskdata.dk>
To: <docbook-apps@lists.oasis-open.org>
Sent: Thursday, July 14, 2005 4:09 AM
Subject: [docbook-apps] Counting number of pages when generating PDF

> I'm in the work of customizing docbook to meet our company layout, but
need a 'page x of y' in the
> footer. I know it can be done by using a:
> <fo:page-number /> of <fo:page-number-citation ref-id="end" />
> but that requires a <fo:block id="end" /> at the end of a <fo:flow>, and
here I'm lost.
> Have this been concidered before, and how can it be solved ??
> Med venlig hilsen - Best regards
> Erling Zachariassen Eybye
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]