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 Raúl Carazo <rc...@bilbomatica.es> on 2002/01/10 13:04:58 UTC
Numbre of pages
Is it possible to know the numbre of pages of a document before showing it (after renderring, but without showing it on the web browser...)?
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Siete buoni, se potete
Re: Numbre of pages
Posted by Jeremias Maerki <je...@outline.ch>.
If you download the current CVS (tag: fop-0_20_2-maintain) you'll find a
new method getResults() in Driver.java that gives you back a
FormattingResults object containing this information.
On Thu, 10 Jan 2002 13:04:58 +0100 Raúl Carazo wrote:
> Is it possible to know the numbre of pages of a document before showing it (after renderring, but without showing it on the web browser...)?
>
>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> Siete buoni, se potete
Cheers
Jeremias Märki
mailto:jeremias.maerki@outline.ch
OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029
Internet http://www.outline.ch
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: Numbre of pages
Posted by Etwin van Krimpen <ev...@ambrac.nl>.
Raul,
This issue is discussed before ...
But try this:
...
<xsl:call-template name="back-matter-init"/>
<!-- for page-number-citation - last page -->
<fo:block id="endofarticle"/>
</fo:flow>
</fo:page-sequence>
and then use the id where you need it:
<fo:page-number-citation ref-id="startofarticle"/>–<fo:page-number-citation ref-id="endofarticle"/>
Regards,
Etwin
----- Original Message -----
From: Raúl Carazo
To: FOP
Sent: Thursday, January 10, 2002 1:04 PM
Subject: Numbre of pages
Is it possible to know the numbre of pages of a document before showing it (after renderring, but without showing it on the web browser...)?
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Siete buoni, se potete