[xep-support] Another image scaling question

From: Chen, Cindy (C)(STP) (Cindy.Chen@guidant.com)
Date: Wed May 05 2004 - 07:32:05 PDT

  • Next message: Alexander Peshkov: "Re[2]: [xep-support] XEP 3.7.7: Treatment of width="100%""

    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@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



    This archive was generated by hypermail 2.1.5 : Wed May 05 2004 - 07:43:02 PDT