You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Chesak,Kenneth" <ke...@dhs.state.tx.us> on 2001/10/23 21:33:09 UTC
external graphic
2 questions, sorry to bother, have posted 3 times to the comp.text.xml
newsgroup without response.
1) I am unable to get a image to show up in the pdf file.
<fo:static-content flow-name="xsl-region-before">
<fo:block>
<fo:external-graphic src="images/logoTDHS.gif"/>Image Here
</fo:block>
<fo:block text-align="center" font-size="24pt">MEMORANDUM
</fo:block>
<fo:block text-align="center" font-size="16pt">Company XYZ
</fo:block>
</fo:static-content>
2) how do it get the following on 1 line?
XSL
<xsl:if test="$level = 'req' or $level = 'app' or $level = 'copy' ">
<fo:block>
<xsl:value-of select="text()"/><fo:block text-align="end">Date:
<xsl:value-of select="date"/>
</fo:block>
</fo:block>
</xsl:if>
XML
<req>Requested by: David Smith<date>October 17, 2001</date>
</req>
Current Output
Requested by : David Smith
Date: October 17, 2001 <<<appears right
justified on next line>>>
Desired Output
Requested by : David Smith
Date: October 17,2001
Kenneth Chesak
Sybase/Oracle DBA
438-5890
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: external graphic
Posted by Corinna Hischke <co...@infix.de>.
Hi All
I'm facing the same problem like Kenneth's No. 1. My gif-Image is quite big
(3000x2000 pixels) and should be scaled down to about 2x1 cm.
I already tried the trick using a block-container of suitable size, but
still there is no error and no image coming up. Any suggestions?
- Corinna
----- Original Message -----
From: "Chesak,Kenneth" <ke...@dhs.state.tx.us>
To: <fo...@xml.apache.org>
Sent: Tuesday, October 23, 2001 8:33 PM
Subject: external graphic
> 2 questions, sorry to bother, have posted 3 times to the comp.text.xml
> newsgroup without response.
>
> 1) I am unable to get a image to show up in the pdf file.
>
> <fo:static-content flow-name="xsl-region-before">
> <fo:block>
> <fo:external-graphic src="images/logoTDHS.gif"/>Image Here
> </fo:block>
> <fo:block text-align="center" font-size="24pt">MEMORANDUM
> </fo:block>
> <fo:block text-align="center" font-size="16pt">Company XYZ
> </fo:block>
> </fo:static-content>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: external graphic
Posted by "Rajagopal. V" <ra...@yahoo.com>.
Hi,
> 1) I am unable to get a image to show up in the pdf
> file.
>
> <fo:static-content flow-name="xsl-region-before">
> <fo:block>
> <fo:external-graphic
> src="images/logoTDHS.gif"/>Image Here
> </fo:block>
> <fo:block text-align="center"
> font-size="24pt">MEMORANDUM
> </fo:block>
> <fo:block text-align="center"
> font-size="16pt">Company XYZ
> </fo:block>
> </fo:static-content>
Either use the whole file URL and mention it as
file:/home/venkar/test.jpg
or
if u are using it this way, make the images directory
in the same folder from where u run the FOP command.
>
> 2) how do it get the following on 1 line?
>
> XSL
>
> <xsl:if test="$level = 'req' or $level = 'app' or
> $level = 'copy' ">
> <fo:block>
> <xsl:value-of select="text()"/><fo:block
> text-align="end">Date:
> <xsl:value-of select="date"/>
> </fo:block>
> </fo:block>
> </xsl:if>
Create a <fo:table> item with these two as cells of
the table.
HTH
Raj
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org