[xep-support] scaling background image
Johan Carstensen
johan.carstensen at zert.se
Wed Jul 6 05:38:22 PDT 2005
Hi
I want to use different scaling along the x-axis and y-axis on a
background image. Is it possible to do that? I have tried to use a
combination of rx:background-content-width and
rx:background-content-height without success.
Can anyone give me some new ideas?
Johan
Here are some of my code:
<fo:simple-page-master
master-name="first-page"
page-height="{$page-height}mm"
page-width="{$page-width}mm"
margin-top="0mm"
margin-bottom="0mm"
margin-left="0mm"
margin-right="0mm">
<fo:region-body
margin-left="0mm" margin-right="0mm"
margin-top="0mm" margin-bottom="0mm" >
<xsl:attribute name="background-image">
<xsl:value-of select="concat('file:',
translate($image-dir, '\', '/'), '/', $maquet-front)" />
</xsl:attribute>
<xsl:attribute
name="background-repeat">no-repeat</xsl:attribute>
<xsl:attribute
name="background-position-horizontal">center</xsl:attribute>
<xsl:attribute
name="background-position-vertical">center</xsl:attribute>
<xsl:attribute
name="rx:background-content-width">213.9mm</xsl:attribute>
<xsl:attribute
name="rx:background-content-height">284mm</xsl:attribute>
</fo:region-body>
<fo:region-before extent="0mm" precedence="true" />
<fo:region-after extent="0mm" precedence="true" />
<fo:region-start extent="0mm" />
<fo:region-end extent="0mm" />
</fo:simple-page-master>
-------------------
(*) 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/terms-of-service.html
More information about the Xep-support
mailing list