Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Xsl-fo

Options
  • 05-07-2007 11:14am
    #1
    Registered Users Posts: 11,262 ✭✭✭✭


    Anyone familiar with scaling graphics?

    I need to print a report that contains a table and in each row is a logo but they are of different sizes so I need to scale it. I've tried different permutations of the following but it's not working.
    <fo:external-graphic content-height="scale-to-fit" content-width="scale-to-fit" scaling="uniform" height="12mm">
       <xsl:attribute name="src">
         <xsl:value-of select="./@logo"/>
       </xsl:attribute>
    
    <fo:external-graphic content-width="12mm" content-height="12mm" scaling="uniform">
    


Comments

  • Subscribers Posts: 4,075 ✭✭✭IRLConor


    Does your XSL-FO processor/renderer support those features?

    What are you using? FOP? If so, what version?

    What format are the images in?


  • Registered Users Posts: 11,262 ✭✭✭✭jester77


    IRLConor wrote:
    Does your XSL-FO processor/renderer support those features?

    What are you using? FOP? If so, what version?

    What format are the images in?

    Using FOP 0.92 and the images are all JPG's.
    Gave up on it and just gave the table row's a fixed height equal to the tallest logo. An ok workaround for now.


Advertisement