cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KOZLOV Roman <r-koz...@opencascade.com>
Subject Re: embedding image-stream in pdf
Date Tue, 20 Aug 2002 06:55:15 GMT
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:przybilla@maxess.de
> 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:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message