[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Graphics scaling on XSLFO - need suggestions

Subject: RE: Graphics scaling on XSLFO - need suggestions
From: "Angela Williams" <Angela.Williams@xxxxxxxxxxxxxxxxxx>
Date: Thu, 15 Feb 2007 11:48:15 -0600
RE:  Graphics scaling on XSLFO - need suggestions
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:  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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.