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 sa...@data-experts.de on 2001/12/03 11:59:37 UTC
Setting the page-number
Hi folks,
i've got the following problem:
Is there a way to set the current page-number within a page-sequence? I'm
looking for something like that "<fo:page-number current-page='1'/>....
Details:
A RTF-document with placeholders (introduced by a escape-character, e.g.
"~") is converted to FO using rtf2fo (http://www.novosoft-us.com/ns2b.nsf/w1/RTF2FO). After that i search in the FO-File for placeholders and replace them.
Example:
RTF: ....Dear Mr. ~mister....
FO: .....<fo:inline>....Dear Mr. ~mister....</fo:inline>.....
So i have a special placeholder "~page", which is replaced by
"<fo:page-number/>" (occours in footer). The RTF-document consist of 2 or
more chapters and every chapter should start with page-number 1. At the
begin of a chapter there is a placeholder "~reset-page-count"... and
therefore i need a fo-tag.
Re: Setting the page-number
Posted by Corinna Hischke <co...@infix.de>.
Hi,
you can begin a new page count by starting a new page-sequence and setting the property initial-page-number="1".
- Corinna
----- Original Message -----
From: sascha.schmidt@data-experts.de
To: fop-dev@xml.apache.org
Sent: Monday, December 03, 2001 11:59 AM
Subject: Setting the page-number
Hi folks,
i've got the following problem:
Is there a way to set the current page-number within a page-sequence? I'm looking for something like that "<fo:page-number current-page='1'/>....
Details:
A RTF-document with placeholders (introduced by a escape-character, e.g. "~") is converted to FO using rtf2fo (http://www.novosoft-us.com/ns2b.nsf/w1/RTF2FO). After that i search in the FO-File for placeholders and replace them.
Example:
RTF: ....Dear Mr. ~mister....
FO: .....<fo:inline>....Dear Mr. ~mister....</fo:inline>.....
So i have a special placeholder "~page", which is replaced by "<fo:page-number/>" (occours in footer). The RTF-document consist of 2 or more chapters and every chapter should start with page-number 1. At the begin of a chapter there is a placeholder "~reset-page-count"... and therefore i need a fo-tag.