So, if your servlet will produce proper HTML response then it should work.

Roman

"Przybilla, Frank" wrote:

> Hi Roman,
>
> I don't know if I got it right what you mean.
>
> What I want to in fop, maybe in conjunction with cocoon, is the following:
>
> <fo:external-graphic src="http://localhost:8080/image-servlet"/>, where the
> servlet is
> producing an image stream. I don't want to store the image as a file and
> then acess it.
>
> Frank
>
> -----Ursprungliche Nachricht-----
> Von: KOZLOV Roman [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 20. August 2002 09:03
> An: [EMAIL PROTECTED]
> Betreff: Re: embedding image-stream in pdf
>
> Sorry, the sitemap snippet is wrong (forgot "request" action to get
> {context}) . The right one is the following:
>
>  <map:match pattern="print_lubricant.pdf">
>    <map:match type="host" pattern="*">
>      <map:act type="request">
>        <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:act>
>    </map:match>
>    <map:serialize type="fo2pdf"/>
>  </map:match>
>
> Roman
>
> KOZLOV Roman wrote:
> >
> > 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]>
>
> "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]>
>
> ---------------------------------------------------------------------
> 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]>

Reply via email to