OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] FOP memory


On 2/7/05 16:38, "Tristan Fiedler" <fiedler@cshl.edu> wrote:

> Hi All,
> 
> When including a specific (but not all) PNG format image to create PDF
> output with FOP, I get :
> 
> Exception in thread "main" java.lang.OutOfMemoryError
> 
> (HTML conversion with saxon works fine).
> 
> I tried to search the docbook-apps archive at
> http://docbook.sourceforge.net/dbk.searchform/
> but apparently the machine has crashed.
> 
> Any suggestions how to increase the FOP memory allocation

I create a script, ~/bin/fop, that acts as a wrapper to
invoke fop.sh and set the memory:

#! /bin/sh
export FOP_OPTS=-Xmx384m

exec /src/extern/Java/fop-0.20.5/fop.sh "$@"

> 
> System : Mac OSX 10.3.7,
> Processor :  1.5 GHz PowerPC G4
> Memory : 1 GB DDR SDRAM
> 
> Command (the saxon call runs fine and generates the FO format file):
> 
> java com.icl.saxon.StyleSheet -x
> org.apache.xml.resolver.tools.ResolvingXMLReader -y
> org.apache.xml.resolver.tools.ResolvingXMLReader -r
> org.apache.xml.resolver.tools.CatalogResolver -u -o temp_$number.fo
> $file_in Style_PDF.xsl; java org.apache.fop.apps.Fop -fo
> temp_$number.fo -pdf $file_out.pdf;
> 
> 
> Thank you,
> 
> Tristan
> ------------------------------
> Tristan J. Fiedler
> Cold Spring Harbor Laboratory
> 




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]