Subject: RE: [xsl] Graphics scaling on XSLFO - need suggestions From: "Angela Williams" <Angela.Williams@xxxxxxxxxxxxxxxxxx> Date: Thu, 15 Feb 2007 11:48:15 -0600 |
That's the problem. Your image is 212.09mm x 190.5mm but the available space inside your region-body is only 200.4mm x 189.9mm. page_height - page_top - page_bottom - body_top - body_bottom = max-height of region-body content area. (279.4mm (11in) - 5mm - 5mm - 39mm - 30mm = 200.4mm) page_width - page_left - page_right - body_left - body_right = max-width of region-body content area (215.9mm (8.5in) - 5mm - 5mm - 8mm - 8mm = 189.9mm) <fo:external-graphic content-height="scale-to-fit" height="200.4mm" content-width="scale-to-fit" width="189.9mm" src="url({@href})"/> works. I have found http://www.onlineconversion.com/length_common.htm useful to convert between mm and inches to determine dimensions - I recommend using the same standard of measurement. Angela -----Original Message----- From: ms [mailto:mina_hurray@xxxxxxxxx] Sent: Wednesday, February 14, 2007 5:55 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] Graphics scaling on XSLFO - need suggestions Hi Angela: Here is my page and body margin information. <fo:simple-page_master master-name="Graphics" page_height="11in" page_width="8.5in" margin-top="5mm" margin-bottom="5mm" margin-left="5mm" margin-right="5mm"> <fo:region-body region-name="Graphics-region-body" margin-top="39mm" margin-bottom="30mm" margin-left="8mm" margin-right="8mm"/> <fo:region-before region-name="Graphics-region-before" extent="44mm"/> <fo:region-after region-name="Graphics-region-after" extent="50mm" display-align="after"/> </fo:simple-page_master> I have tried playing with the margins and set them to 0.5in for both the page and region-body. Then I set the content-height and content-width values to "scale-to-fit". This again says "no space for element to recover". Thanks for all your help.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] error in variable stateme, Mario Madunic | Thread | [xsl] Including a saxon:function, Craig Sampson |
Re: [xsl] Flattening characters to , Peter Hickman | Date | [xsl] Variables have no value, Angela Williams |
Month |