xml - Strategies for complex page numbering in PDF's -
i have question custom page numbering ("point pages") when creating pdf. i'm using xslt create xsl-fo xml instance. xslt processor saxon 9 , xsl-fo processor renderx (4.18).
what need able change page numbering once reaches point. (the page number in footer (static-content).)
lets have book has multiple chapters in it. each 1 of these chapters has chapter number. chapter number page numbering based on.
for example, if chapter number 2000, first page of chapter 2001.
this fine until 998'th page (the chapter has end on page). example, if chapter 2000 had 1,002 pages page numbering of last 6 pages be:
2997, 2998, 2999, 3000, 3001, 3002
this incorrect since there might chapter 3000.
what need able change page numbering after 998'th page. using chapter 2000 1,002 pages example, numbering should be:
2997, 2998, 2998.1, 2998.2, 2998.3, 2998.4
.
this i'm doing now:
i'm using
<fo:page-number>
info:static-content
.i'm setting starting page number (chapter number + 1) using
initial-page-number
attribute info:page-sequence
element.
if have can manipulate intermediate file xep (renderx) creates, think messy , i'm not sure how reliable be. also, updating table of contents end being nightmare. (the intermediate file produced xep post-processed xsl-fo; has page numbers generated.)
does have suggestions on strategies can use accomplish this? thought read somewhere use maximum-repeats
attribute in page-sequence-master
element (like maximum-repeats="998"
) , use different master page, have no idea how that.
thanks!
Comments
Post a Comment