The xf:pdf-label-prefix element sets a label for the page sequence to which it was applied to.
Using this extension will affect the format of the page numbers displayed in the PDF output.
- type: String
- supported values:
- COV - normal page numbering
- let - small caps
- LET - uppercase
- rom - small roman numbers
- ROM - uppercase roman numbers
Example of usage:
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xf="http://www.ecrion.com/xf/1.0" xmlns:xc="http://www.ecrion.com/2008/xc" xmlns:xfd="http://www.ecrion.com/xfd/1.0" xmlns:svg="http://www.w3.org/2000/svg" xmlns:msxsl="urn:schemas-microsoft-com:xslt" font-family="Times" font-size="12pt" xf:pdf-label-pages="true">
<fo:layout-master-set>
<fo:simple-page-master master-name="Letter Page" page-width="8.500in" page-height="2.000in">
<fo:region-body region-name="xsl-region-body" margin="0.700in"/>
<fo:region-before region-name="xsl-region-before" display-align="after" extent="0.700in"/>
<fo:region-after region-name="xsl-region-after" display-align="before" extent="0.700in"/>
<fo:region-start region-name="xsl-region-start" extent="0.700in"/>
<fo:region-end region-name="xsl-region-end" extent="0.700in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="Letter Page" xf:pdf-label-prefix="COV">
<fo:static-content flow-name="xsl-region-before">
<fo:block/>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after">
<fo:block/>
</fo:static-content>
<fo:static-content flow-name="xsl-regioxn-start">
<fo:block/>
</fo:static-content>
<fo:static-content flow-name="xsl-region-end">
<fo:block/>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block break-before="page">Page 1</fo:block>
</fo:flow>
</fo:page-sequence>
<fo:page-sequence master-reference="Letter Page" format="A" xf:pdf-label-prefix="LET-">
<fo:static-content flow-name="xsl-region-before">
<fo:block/>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after">
<fo:block/>
</fo:static-content>
<fo:static-content flow-name="xsl-region-start">
<fo:block/>
</fo:static-content>
<fo:static-content flow-name="xsl-region-end">
<fo:block/>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block break-before="page">Page 2</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
PDF output: