[xep-support] Another image scaling question

Chen, Cindy (C)(STP) Cindy.Chen at guidant.com
Wed May 5 07:32:05 PDT 2004


Hi all,

I have another question regarding image scaling. I am trying to scale and place an image into one page. So I defined FO like following:
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <fo:layout-master-set>
        <fo:simple-page-master page-width="110mm" page-height="150mm" master-name="sample">
            <fo:region-body border="solid" region-name="xsl-region-body"/>
        </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="sample">
        <fo:flow flow-name="xsl-region-body">
            <fo:block>
                <fo:external-graphic src="url(Images/spots.jpg)"  display-align="center" text-align="center"
                    content-width="scale-to-fit" width="100%" content-height="scale-to-fit" height="100%"/>
            </fo:block>
        </fo:flow>
    </fo:page-sequence>
</fo:root>

It worked fine as I expected. But one thing is that if I make the page width bigger than page height, I got an error stating:
[warning] no space for an element, trying to recover

Following is the two cases that will both cause the error:
        <fo:simple-page-master page-width="110mm" page-height="150mm" master-name="sample" reference-orientation="90">
        <fo:simple-page-master page-width="150mm" page-height="110mm" master-name="sample">

The image I am using is the one comes with the XEP sample code.

How could I avoid the error?

Thanks,
Cindy Chen



-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



More information about the Xep-support mailing list