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

Re: fo:external-graphic

From: Hong Jiang <hjiang@obj-x.com>
Date: Wed, 3 Apr 2002 11:39:53 -0500
Message-ID: <006201c1db2e$2ec92fc0$2401a8c0@objx.com>
To: "Tanzila Mohammad" <tmohammad@entier-solutions.com>, <www-xsl-fo@w3.org>

I tried this too, but the image size is still bigger than the original one. Any other clue?

  ----- Original Message ----- 
  From: Tanzila Mohammad 
  To: Hong Jiang ; www-xsl-fo@w3.org 
  Sent: Wednesday, April 03, 2002 11:27 AM
  Subject: Re: fo:external-graphic


  When displaying an image you can use something like this:
  <fo:external-graphic src="cat.gif" width="99px" height="109px" />

  All the attributes are contained within the element.

  Hope this helps.



    ----- Original Message ----- 
    From: Hong Jiang 
    To: www-xsl-fo@w3.org 
    Sent: Wednesday, April 03, 2002 4:37 PM
    Subject: fo:external-graphic

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


    Hong Jiang
Received on Wednesday, 3 April 2002 11:39:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:25 UTC