xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Franz de Copenhague <franzdecopenha...@outlook.com>
Subject fop-users@xmlgraphics.apache.org
Date Wed, 30 Sep 2015 19:34:36 GMT
This is my first question to the list.

I did try to google the way to have page numbers with roman numbers but I couldn't figure
it out.

Would you modify the example below to illustrate me how to achieve roman page numbers?

<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <fo:layout-master-set>
       
 <fo:simple-page-master master-name="simple" page-height="29.7cm" 
page-width="21cm" margin-top="1cm" margin-bottom="2cm" 
margin-left="2.5cm" margin-right="2.5cm">
            <fo:region-body margin-top="3cm"/>
            <fo:region-before extent="3cm"/>
            <fo:region-after extent="1.5cm"/>
        </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="simple" initial-page-number="20">
        <fo:static-content flow-name="xsl-region-before">
            <fo:block text-align="end">page <fo:page-number/></fo:block>
        </fo:static-content>
        <fo:flow flow-name="xsl-region-body">
            <fo:block> I would like to see page XX on top </fo:block>
        </fo:flow>
    </fo:page-sequence>
</fo:root>



Thanks,
Franz 		 	   		  
Mime
View raw message