xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brunn, Chris" <chris.br...@bankofamerica.com>
Subject RE: where to put graphics referenced by external-graphic
Date Tue, 08 Jan 2002 15:39:53 GMT

Will the following work for you?

<fo:external-graphic width="auto" height="auto"
src="http://localhost/path_or_alias_path/graphic_file_name.extension" />
If you must use relative paths, I know Xerces (1.4.3) has its root directory
in the root for the servlet engine. You could easily test if this is also
true for the FOP.

> -----Original Message-----
> From:	Martin Monsorno [SMTP:Martin.Monsorno@exolution.de]
> Sent:	Tuesday, January 08, 2002 9:32 AM
> To:	fop-user@xml.apache.org
> Subject:	where to put graphics referenced by external-graphic
> Hi *,
> I'm writing on a wep application which creates PDF document with
> fop. These documents should contain a graphic, I try to insert it with
> the <fo:external-graphic>-element.  The problem is now, how I can
> reference the graphic.
> The graphic-file should lie on the server, but it's not possible to
> use an absolute http-URL, because the server-name may not be known
> everytime. I tried to use a file://-URL, but this is also not possible
> for relative URLs, because I do not know the absolute path in any
> case, and furthermore I don't know where FOP assumes the
> root-directory (FOP is started from a servlet!).
> Does anybody has a solution to this problem? E.g. Is it possible to use
> relative URLs with this element?
> -- 
> Martin Monsorno
> mailto:Martin.Monsorno@gmx.de

View raw message