You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Ma...@synthesis.de on 2001/01/31 08:13:55 UTC

Total page number problem

Hi,
to display the current page number on each page is working all right.
But how do I display the total page number?
Can anybody help me?

Thanks,
Mathias


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Total page number problem

Posted by Chetan Vig <ch...@yahoo.com>.
It did not work for me.

This is what I am trying to do

<fo:page-sequence master-name="alpha" initial-page-number="1">
    <fo:static-content flow-name="xsl-region-before">
            <fo:block font-size="8pt"  text-align="end"> Page <fo:page-number/>
of
                            <fo:page-number-citation ref-id="terminator"/>
              </fo:block>
    </fo:static-content>

       <fo:flow flow-name="xsl-region-body">
       -----
       </fo:flow>
   <fo:block id="terminator"/>
</fo:page-sequence>

Please help.

Thanks

-Chetan


Bertrand Delacretaz wrote:

> > But how do I display the total page number?
>
> Put something like <fo:block id="terminator"/> right before the end of the
> </fo:page-sequence>.
>
> You can then display the total number of pages with <fo:page-number-citation
> ref-id="terminator"/> somewhere in the flow.
>
>  -- Bertrand Delacrétaz, codeconsult
>  -- http://www.codeconsult.ch
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Total page number problem

Posted by Bertrand Delacretaz <bd...@codeconsult.ch>.
> But how do I display the total page number?

Put something like <fo:block id="terminator"/> right before the end of the 
</fo:page-sequence>.

You can then display the total number of pages with <fo:page-number-citation 
ref-id="terminator"/> somewhere in the flow.

 -- Bertrand Delacr�taz, codeconsult
 -- http://www.codeconsult.ch


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org