On Aug 28, 2007, at 15:00, Richard FARAND wrote:
Hi
I'm trying to force my first page-number to 0 (zero) using initial-
page-number=0. But it does not work (FOP 0.93 product version)!
FOP always seems always to reset its page-number to 1.
FOP is merely being compliant to the XSL-FO Rec here, I'm afraid...
The Rec states that the value, if a number, should be 'a positive
integer', and 'if a non-positive or non-integer value is provided,
the value will be rounded to the nearest integer value greater than
or equal to 1'.
For now, unless I'm missing something, XSL-FO does not allow you to
have a page zero. :(
But when I reset it to another value but 0 (for exemple initial-
page-number=24), it works. My pages are counted from the given non-
zero value.
Is there any issue to this problem??... I tried to recuperate the
value of fo:page-number but no way...
I have also another question: Is there any way to maintain two page-
number sequences. I have indeed to print the internal page-number
relative to the current chapter, and also the general page-number
(relative to the whole pdf file). For example, page #10 in chapter
2, will be the page #55 in the document. And I need to print the
two quantities (chapter 2 - page 10 in the header, and 55 in the
footer)... Is there anyway to do it in FOP (and in XSL-FO generally).
Although I don't immediately see a way to achieve this in native XSL-
FO, maybe it is possible by post-processing the PDF with iText to
insert the footer page-numbers, or by using the Intermediate Format
and altering FOP's XML Area Tree, as described here:
http://xmlgraphics.apache.org/fop/0.94/intermediate.html
HTH!
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]