DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20868>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20868

max external graphic height depends on region-body

           Summary: max external graphic height depends on region-body
           Product: Fop
           Version: 0.20.5
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: images
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to