Hello Johan,
You are looking for rx:background-scaling property. It behaves exactly
as XSL-FO 'scaling' property but applies to background image. And it
has exactly the same default value of "uniform". You should set it to
"non-uniform".
Best regards,
Alexander Peshkov mailto:peshkov@renderx.com
RenderX
JC> Hi
JC> I want to use different scaling along the x-axis and y-axis on a
JC> background image. Is it possible to do that? I have tried to use a
JC> combination of rx:background-content-width and
JC> rx:background-content-height without success.
JC> Can anyone give me some new ideas?
JC> Johan
JC> Here are some of my code:
JC> <fo:simple-page-master
JC> master-name="first-page"
JC> page-height="{$page-height}mm"
JC> page-width="{$page-width}mm"
JC> margin-top="0mm"
JC> margin-bottom="0mm"
JC> margin-left="0mm"
JC> margin-right="0mm">
JC> <fo:region-body
JC> margin-left="0mm" margin-right="0mm"
JC> margin-top="0mm" margin-bottom="0mm" >
JC> <xsl:attribute name="background-image">
JC> <xsl:value-of select="concat('file:',
JC> translate($image-dir, '\', '/'), '/', $maquet-front)" />
JC> </xsl:attribute>
JC> <xsl:attribute
JC> name="background-repeat">no-repeat</xsl:attribute>
JC> <xsl:attribute
JC> name="background-position-horizontal">center</xsl:attribute>
JC> <xsl:attribute
JC> name="background-position-vertical">center</xsl:attribute>
JC> <xsl:attribute
JC> name="rx:background-content-width">213.9mm</xsl:attribute>
JC> <xsl:attribute
JC> name="rx:background-content-height">284mm</xsl:attribute>
JC> </fo:region-body>
JC> <fo:region-before extent="0mm" precedence="true" />
JC> <fo:region-after extent="0mm" precedence="true" />
JC> <fo:region-start extent="0mm" />
JC> <fo:region-end extent="0mm" />
JC> </fo:simple-page-master>
JC> -------------------
JC> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
JC> in the body of the message to majordomo@renderx.com from the address
JC> you are subscribed from.
JC> (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
-------------------
(*) 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/terms-of-service.html
Received on Wed Jul 6 08:02:02 2005
This archive was generated by hypermail 2.1.8 : Wed Jul 06 2005 - 08:02:03 PDT