I try to produce a Spare Parts List PDF with Apache FOP 0.20.5rc3a. On even pages I just have a static explosion drawing and on odd pages a table with spare parts, that can spread over multiple pages. To do this I use repeatable- page-master-alternatives. To get nice page breaks, I have a pseudo region-body with a height of 1mm on the even pages (the flow is the table, the explosion drawing is on a static-content-area). Unfortunately I had to find out, that the external graphic on the static content area cannot be higher than the height of the region-body. Since I only have a pseudo region-body of 1mm height, the image is rendered far too small ;) I do not think that this is desired behaviour. So I stepped into the source code (I start to love open source). And in org.apache.fop.fo.flow.ExternalGraphic.layout(Area area) in line 209 I found out that the maximum height of the external graphic is indeed dependent on "area.getPage().getBody().getMaxHeight()". But this class is used for static content areas, too. I changed this to "area.spaceLeft()". For my special rendering this works fine. Of course, I do not have a clue, if this is a solution for any boundary condition. I would really appreciate if you could have a look at it. Thanks, FloH
Created attachment 6874 [details] Proposed patch
Oops, ignore attachment. Wrong bug.
Created attachment 7813 [details] Some fo files to illustrate the problem. (zip)
Bug fixed in latest Trunk (rev 584703), and probably in FOP 0.94
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed