When a large image is used that cannot fit on one page FOP creates a new page and tries to fit it on that page, unfortunately what happens is it can't fit on that page so it keeps trying until the VM runs out of memory. This even happens if a max-width and max-height are specified on the external graphic.
The problem was that the code to check the height of the page was looking at the full page height and not the height of the body which is the available area. This caused the height to allways be too big and therefore the scaling did not take place. The following change solves this. org/apache/fop/fo/flow/ExternalGraphic.java Line 147 old: int pageHeight = area.getPage().getHeight(); Line 147 new: int pageHeight = area.getPage().getBody().getMaxHeight() - spaceBefore; I do not have access to change the source in CVS can someone do this. Cheers, Paul p_d_austin@yahoo.com
Can someone with cvs access pick this up? Thanks, Paul
*** Bug 4262 has been marked as a duplicate of this bug. ***
The patch has been applied but there are still problems with large images. *** This bug has been marked as a duplicate of 2987 ***
batch transition to closed remaining pre-FOP1.0 resolved bugs