Logger logger = log.getChildLogger("fop");
Driver driver = new Driver();
driver.setLogger(logger);
+ driver.initialize();
if (outputPDF) {
driver.setRenderer(Driver.RENDER_PDF);
} else {
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:flow flow-name="xsl-region-body">
<fo:block background-color="#FF0000">
<fo:block>
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:flow flow-name="xsl-region-body">
<fo:block>
This is a simple fo block with transparent background.
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:static-content flow-name="xsl-region-before">
<fo:block-container border-color="black" border-style="solid" border-width="1pt" height="2.5cm" width="4cm" padding="8pt" position="absolute">
<fo:block text-align="start" line-height="2cm" font-family="sans-serif" font-size="12pt">
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:flow flow-name="xsl-region-body">
<fo:block>
This is a simple fo block.
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:flow flow-name="xsl-region-body">
<fo:block>
This is a simple fo block.
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:flow flow-name="xsl-region-body">
<fo:block>
This is a simple fo block.
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:flow flow-name="xsl-region-body">
<fo:block color="#C00000">
This is a simple fo text in red color.
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:flow flow-name="xsl-region-body">
<fo:block>
default:
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:flow flow-name="xsl-region-body">
<fo:block>
This is a simple fo text in FOP default font size and default font.
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:flow flow-name="xsl-region-body">
<fo:block font-family="Courier" font-size="12pt">
This is a simple fo text in Courier font.
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<!-- header -->
<fo:static-content flow-name="xsl-region-before">
<fo:block-container width="5cm" height="3cm" position="absolute" background-color="#22CC55">
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:flow flow-name="xsl-region-body">
<fo:block text-align="justify" start-indent="1in">
This is a simple fo block with justify indented in the start.
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:inline>The sentence is</fo:inline>
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:flow flow-name="xsl-region-body">
<fo:block space-before.optimum="1cm" font-family="monospace" font-size="10pt" white-space-treatment="preserve" wrap-option="no-wrap">
F I N A L C A L C U L A T I O N AUD $ AUD $
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:leader leader-pattern="rule" rule-thickness="3.0pt"></fo:leader>
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:flow flow-name="xsl-region-body">
<fo:block letter-spacing="normal">
This text is normally spaced.
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:flow flow-name="xsl-region-body">
<fo:block font-weight="bold" text-align="center">
<fo:inline text-decoration="underline">
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:flow flow-name="xsl-region-body">
<fo:block font-size="18pt"
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:flow flow-name="xsl-region-body">
<fo:block>
This is Page Number <fo:page-number/>.
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:flow flow-name="xsl-region-body">
<fo:block space-before.optimum="1cm">
leader-pattern="rule" rule-style="solid" rule-thickness="0.5pt"
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:flow flow-name="xsl-region-body">
<fo:block space-after.optimum="1cm">
The text below is in monospace font(useful for displayed formatted text, program code etc.)
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:flow flow-name="xsl-region-body">
<fo:block space-after.optimum="1cm">
space-after.optimum="1cm"
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:flow flow-name="xsl-region-body">
<fo:block>
This is a simple fo block.
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:flow flow-name="xsl-region-body">
<fo:block>
This is a simple fo text.
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:flow flow-name="xsl-region-body">
<fo:block text-align="start" space-before.optimum="6pt" text-indent="1in">
This text is formatted into a left-justified paragraph.
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-name="simplePM">
+ <fo:page-sequence master-reference="simplePM">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:inline word-spacing="normal">In this text, spaces between words are normal.</fo:inline>