Hi Frank,
There was a problem with images URL's in generated pdf. The matter is that
relative URL's don't work. You have to put complete absolute URL's (like
http://host... etc.).
I've used "host" matcher in the following pipeline to get full path to images as
a parameter in XSLT:
<map:match pattern="print_lubricant.pdf">
<map:match type="host" pattern="*">
<map:generate src="some_source.xml"/>
<map:transform src="stylesheets/lubricant2fo.xsl">
<map:parameter name="filePath"
value="http://{../1}{context}/mount/ome-db/ome-dbl/img"/>
</map:transform>
</map:match>
<map:serialize type="fo2pdf"/>
</map:match>
Roman
"Przybilla, Frank" wrote:
> Dear All,
>
> I have the following scenario and I want to know
> if this can be solved with fop:
>
> There is a servlet which can produce images (png, jpeg, etc.) as ouput
> streams
> which are not materialized to files.
> How can this servlet be used to embed these images in a pdf file with fop?
> I have already tried it with <fo:external-graphic scrc="<url-to-servlet>"
> />. So I want
> to use it the same way as in a HTML-Scenario where it works fine with <img
> src="<url-to-servlet>"/>.
>
> But with fop it doesn't work.
>
> Can anyone tell me, if this is generally be possible with fop or which
> alternatives exists?
>
> Thanks in advance
>
> Frank.
>
> ----------------------------------------------------------------------------
> -------
> Frank Przybilla @x-modules
> (Dipl.-Inform.)
> maxess systemhaus gmbh
> Europaallee 3-5 Phone: +49 (0) 631.303-2500
> 67657 Kaiserslautern Fax: +49 (0) 631.303-2501
> E-Mail: mailto:[EMAIL PROTECTED]
> Germany www: http://www.maxess.de
> ----------------------------------------------------------------------------
> ------
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>