Wednesday, August 28, 2013

XSLT - Resize External Graphic

Resize External Graphic
<fo:external-graphic 
src="s\image.png"  
content-height="scale-to-fit" 
height="2.00in"  
content-width="2.00in" 
scaling="non-uniform"/>

Or

<xsl:attribute-set name="googleMap">
  <xsl:attribute name="height">2.50in</xsl:attribute>
  <xsl:attribute name="content-width">6.50in</xsl:attribute>
  <xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
  <xsl:attribute name="scaling">non-uniform</xsl:attribute>
</xsl:attribute-set>

<fo:external-graphic 
src="url('s\image.png')"
xsl:use-attribute-sets="googleMap" />
    

0 comments:

Post a Comment