Wrong image height calculation in region-start and region-end
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]
CVS of the maint. branch
Hello together, i'm looking for the current cvs version of the maintenance branch (0.20.5). I have no possiblity to get it through CVS (our firewall blocks that). Is there another way to get the source of the current version? -- regards Timo Haberkern EMEDIA OFFICE GmbH Wingertstr. 4 74850 Schefflenz-Kl. http://www.emedia-office.com thaberkern at emedia-office.de Tel.: 06293/921121 Fax: 06293/921129 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Bug?Wrong automatic resize of images in region-start, region-end
hello together, as I posted in the user-list allready, i've some problems using external-graphics in region-start and region-end. The problem is that the images are automatically resized by FOP. I tried around a little bit and found out that the maximum height of an external-graphic in region-start/-end is calculated the as max = (page height) - margin-top (region-body) - margin-bottom (region-body) That might be ok for the most use cases. But not for mine. I'm new to fop but think i have defined a page layout that has the same layout as the pagination.fo example shipped with FOP. I want to use two images in the region-start and region-end that are almost as high as the page-height. If i set a background-color for the region-start i can see that the size of the region is ok, only the image size is calculated wrong. Is there a patch available for this. The problem is that i need a solution very quick (project deadline comes nearer and nearer ;-) ). Any ideas? I have attached my stylesheet at the end of this mail -- regards Timo Haberkern http://www.w3.org/1999/XSL/Transform"; xmlns:fo="http://www.w3.org/1999/XSL/Format"; version="1.0"> http://www.w3.org/1999/XSL/Format";> 4cm Merkmale 2.3cm 3.5cm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Bug?Wrong automatic resize of images in region-start, region-end
I have done some quick-and-dirty changes in the FOP code. At the moment i have not the time to deep-hack into the system, but my changes working good for me. No guarantee that it works in all other cases after the changes. May i have the time after the 16th Dec. (Project-Deadline). I will take then a closer look to the code. My only change in file ExternalGraphic.java (Line 156, current CVS version) Replaced int pageHeight = area.getPage().getBody().getMaxHeight() - spaceBefore; with int pageHeight = area.getPage().getHeight()- spaceBefore; May that helps others too. Timo Timo Haberkern wrote: hello together, as I posted in the user-list allready, i've some problems using external-graphics in region-start and region-end. The problem is that the images are automatically resized by FOP. I tried around a little bit and found out that the maximum height of an external-graphic in region-start/-end is calculated the as max = (page height) - margin-top (region-body) - margin-bottom (region-body) That might be ok for the most use cases. But not for mine. I'm new to fop but think i have defined a page layout that has the same layout as the pagination.fo example shipped with FOP. I want to use two images in the region-start and region-end that are almost as high as the page-height. If i set a background-color for the region-start i can see that the size of the region is ok, only the image size is calculated wrong. Is there a patch available for this. The problem is that i need a solution very quick (project deadline comes nearer and nearer ;-) ). Any ideas? I have attached my stylesheet at the end of this mail -- GrĂ¼sse Timo Haberkern EMEDIA OFFICE GmbH Wingertstr. 4 74850 Schefflenz-Kl. http://www.emedia-office.com [EMAIL PROTECTED] Tel.: 06293/921121 Fax: 06293/921129 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]