xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Bourke <john.bou...@Cedar.com>
Subject Trying to resolve memory exception through correct use of page se quencing
Date Wed, 01 May 2002 14:20:05 GMT

I'm having a problem rendering a large file (500 plus pages) using FOP. Fop
eventually causes my machine to run out of memory even though I'm allocating
it 300mb.
I think the problem is caused by me having a page sequence called detail
page, into which my 500 pages worth of data is placed with a page break
before each page full. BUT, this is all within the one page sequence which I
think FOP is trying to render all at once.
Ideally for each page full I would like to start a new page sequence and
thus allow FOP only render one page at a time. Does this sound to anybody
like the right way to go about this?

My page sequence master is as follows:
<fo:page-sequence-master master-name="reportDetails">
    <fo:repeatable-page-master-reference master-name="detailPage"/>

I then start my page using:
<fo:page-sequence master-reference="reportDetails" initial-page-number="2">

Then when rendering FOP throws the following exception:
at org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:334)
at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:268)
at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:200)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:182)
at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at org.apache.fop.apps.Driver.render(Driver.java:481)
at org.apache.fop.apps.Driver.run(Driver.java:554)

Apologies for the length of this message but can anybody advise me?

Best Regards,

John Bourke

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. Any unauthorised distribution or copying is strictly 

Whilst Cedar Plc takes steps to prevent the transmission of 
viruses via e-mail, we can not guarantee that any email or 
attachment is free from computer viruses and you are strongly
advised to undertake your own anti-virus precautions.

Cedar Plc grants no warranties regarding performance,
use or quality of any e-mail or attachment and undertakes no 
liability for loss or damage, howsoever caused.

View raw message