When I try to create a pdf with a big gif image(size of my page),
I get the follow erro:
[root@jorge fop]# ./fop.sh images.fo images.pdf
FOP 0.20.0
using SAX parser org.apache.xerces.parsers.SAXParser
building formatting object tree
setting up fonts
[1>]Exception in thread "main" java.lang.OutOfMemoryError
<<no stack trace available>>
I have a 128M ram.
My fo file is:
<?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="right"
page-height="8.26in"
page-width="11.69in"
margin-top="20pt"
margin-bottom="20pt"
margin-left="20pt"
margin-right="20pt">
<fo:region-body margin-bottom="20pt"/>
<fo:region-after extent="20pt"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="psmOddEven" >
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-name="right"
page-position="first" />
<!-- recommended fallback procedure -->
<fo:conditional-page-master-reference master-name="rest" />
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-master-set>
<fo:page-sequence id="N2528" master-name="psmOddEven">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:external-graphic src="file:./logo.gif"/>
</fo:block>
<fo:block-container height="200pt"
width="200pt"
top="0cm"
left="10cm"
padding="3pt"
position="absolute">
<fo:block>
ALO MUNDO!!!!!!!!!!..... lkgjalgjflajksgljksg
</fo:block>
</fo:block-container>
<fo:block-container height="10cm"
width="5cm"
top="10cm"
left="10cm"
padding="3pt"
position="absolute">
<fo:block font-size="8pt"
font-family="Courier"
text-align="justify">
HELLO WORD!!<fo:inline
text-decoration="underline">underline</fo:inline>
<fo:inline text-decoration="overline">bigger font-size</fo:inline>
<fo:inline text-decoration="line-through">monospaced font</fo:inline>
<fo:inline text-decoration="blink">blink</fo:inline>.
</fo:block>
</fo:block-container>
</fo:flow>
</fo:page-sequence>
</fo:root>
Thanks in advance.