Gentlepeople, I am struggling to find the correct fo "code" to fill a fixed size region with an image. Scaling should non uniform if needed.
e.g. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" > <fo:layout-master-set> <fo:simple-page-master master-name="New Page" page-height="150.0pt" page-width="300.0pt"> <fo:region-body></fo:region-body> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="New Page"> <fo:flow flow-name="xsl-region-body"> <fo:block-container absolute-position="fixed" left="30pt" top="30pt" width="52.5pt" height="65.25pt" > <fo:block> <fo:external-graphic width="52.5pt" height="65.25pt" content-height="scale-to-fit" content-width="scale-to-fit" scaling="non-uniform" src="url(http://www.reproducts.de/museum/2005/0104_catweazle/catweazle.jpg))" /> </fo:block> </fo:block-container> </fo:flow> </fo:page-sequence> </fo:root> While this seems to work, I am surprised by the fact that fop complains with WARNING: Part/page 0 overflows the available area in block-progression dimension. (fo:block-container, location: 15/24) Also if I add overflow="hidden" to the block container a few rows of pixels of the image are gone. Can anyone point me to the problem in the above fo fragment and give some guidance on how this should be done correctly. As always, many thanks indeed! Peter -- View this message in context: http://www.nabble.com/non-uniform-scaling-and-overflow-warning-tf3895012.html#a11042339 Sent from the FOP - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
