Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSL FO (PDF) - Image Vertical Align

Status
Not open for further replies.

JavaKat

Programmer
Jun 27, 2002
11
US
I am trying to vertically align a small graphic with the top of the following text. This is a fo stylesheet for rendering xml into a pdf, using Apache's FOP parser. Here's my code, sans my failed attempts at alignment:

Code:
<fo:block text-align=&quot;start&quot; font-size=&quot;10pt&quot;
          font-family = &quot;Times Roman&quot; font-weight=&quot;bold&quot;>
  <xsl:element name=&quot;fo:external-graphic&quot;>
    <xsl:attribute name=&quot;src&quot;>
      C:\docs\images\small_hands.gif
    </xsl:attribute>
    <xsl:attribute name=&quot;content-width&quot;>
      30px
    </xsl:attribute>
    <xsl:attribute name=&quot;content-height&quot;>
      20px
    </xsl:attribute>
    <xsl:attribute name=&quot;width&quot;>
      6.0mm
    </xsl:attribute>
    <xsl:attribute name=&quot;height&quot;>
      4.0mm
    </xsl:attribute>
  </xsl:element>
  <xsl:value-of select&quot;header&quot; />
</fo:block>

Has anyone else encountered (and found a solution to) this problem before?

Thanks so much!
--JavaKat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top