Hello list,

i wrote the following problem last december to this list (http://marc.theaimsgroup.com/?l=fop-dev&m=103917590532646&w=2) and posted a very quick&dirty solution that worked for me.

I have now updated my patched version to the current 0.20.5 release. During the update i took a little deeper look at my past problem and fixed the code of ExternalGraphic.java more properly (hope so). Maybe some of the main developers can take a quick look at it and patch it into the 0.20.x branch.

I changed the code of the layout function in ExternalGraphic.java from:

int pageHeight = area.getPage().getBody().getMaxHeight()
                            - spaceBefore;

if (height > pageHeight) {
               height = pageHeight;
               width = (int)(ratio * ((double)height));
           }


to:


int areaHeight = area.getMaxHeight() - spaceBefore;

           if (height > areaHeight) {
               height = areaHeight;
               width = (int)(ratio * ((double)height));
           }


-- best regards

Timo Haberkern

EMEDIA OFFICE GmbH
http://www.emedia-office.com
thaberkern at emedia-office.de



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



Reply via email to