W3C home > Mailing lists > Public > www-xsl-fo@w3.org > April 2002

fo:external-graphic

From: Hong Jiang <Jiang_hong@hotmail.com>
Date: Wed, 3 Apr 2002 10:37:02 -0500 (EST)
To: <www-xsl-fo@w3.org>
Message-ID: <OE53TTiQBRjMbZnjgaq000167b8@hotmail.com>
Hi All,

I use the following code in my xsl to display a image,
      <xsl:element name="fo:external-graphic">
       <xsl:attribute name="src">images/pdf/logo.gif</xsl:attribute>
       <xsl:attribute name="content-width">123px</xsl:attribute>
       <xsl:attribute name="content-height">31px</xsl:attribute>
       <xsl:attribute name="width">auto</xsl:attribute>
       <xsl:attribute name="height">auto</xsl:attribute>
       <xsl:attribute name="scaling">auto</xsl:attribute>
     </xsl:element>
The content-width and content-height are the same as the original image. But when I print out the pdf page, the image is much bigger than the original one. It seems all attributes of the element did not work, except the src.

Can anybody tell me how can I get a image with the original size?

Thanks,

Hong Jiang
Received on Wednesday, 3 April 2002 11:09:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:09 GMT