Re: [jfor-users] Question about page numbering

Bertrand Delacretaz <[email protected]> Mon, 23 Sep 2002 11:16:51 +0200
Newsgroups gmane.text.xml.jfor.devel
Organization codeconsult
Message-ID <[email protected]>
On Tuesday 17 September 2002 12:07, Todeush, Serhiy wrote:
>. . .
> As for modifying jfor, I cannot promise result, because I'm new to Java,
> but I certainly can try.
> So please tell me where to look at.

Page numbers are handled through the following classes, sorted here by order 
of "importance" in this process:

./org/jfor/jfor/converter/PageNumberBuilder.java
./org/jfor/jfor/rtflib/rtfdoc/RtfPageNumber.java
./org/jfor/jfor/rtflib/rtfdoc/IRtfPageNumberContainer.java
./org/jfor/jfor/converter/PageNumberCitationBuilder.java
./org/jfor/jfor/rtflib/rtfdoc/RtfPageNumberCitation.java
./org/jfor/jfor/rtflib/rtfdoc/IRtfPageNumberCitationContainer.java

If you study RtfPageNumber.java you will see that page numbers are generated 
by an rtf PAGE field. I don't know offhand how to set the initial page number 
using this field - maybe you can generate the desired effect in a word 
processor and study the generated RTF, or have a look at the RTF specs (see 
links on www.jfor.org).

Hope this helps!

-- 
 Bertrand Delacrétaz (codeconsult.ch, jfor.org)

 buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
 disclaimer: eternity is very long. mostly towards the end. get ready.







-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf