You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Philip S. Constantinou" <ph...@wayfinder.net> on 2002/07/12 18:57:40 UTC

embedding images

Hello -
I'm having a little trouble getting embedded images to work in the FO
processor. I've included the following text:

<fo:block text-indent="3in" space-after="48pt">Sincerely,</fo:block>
<fo:block text-indent="3in"><fo:external-graphic src="file://signature.gif" />
</fo:block>

I get the error:
Error with image URL: signature.gif and no base directory is specified

How do I define the base directory? Are there alternatives to using a base
directory, like the classpath?
I'm running the processor within another application so I can't rely on
the application being started from a particular directory.

Regards -
Phil



Re: embedding images

Posted by Antonio Fiol BonnĂ­n <fi...@w3ping.com>.
Philip S. Constantinou wrote:

>Hello -
>I'm having a little trouble getting embedded images to work in the FO
>processor. I've included the following text:
>
><fo:block text-indent="3in" space-after="48pt">Sincerely,</fo:block>
><fo:block text-indent="3in"><fo:external-graphic src="file://signature.gif" />
></fo:block>
>
>I get the error:
>Error with image URL: signature.gif and no base directory is specified
>
>How do I define the base directory? Are there alternatives to using a base
>directory, like the classpath?
>I'm running the processor within another application so I can't rely on
>the application being started from a particular directory.
>
>Regards -
>Phil
>
>
>
>.
>
>  
>
Not sure, but using an absolute path may help.

file:///some/dir/signature.gif


Antonio Fiol



Re: embedding images

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Philip S. Constantinou wrote:
> src="file://signature.gif" />
...
> I get the error:
> Error with image URL: signature.gif and no base directory is specified

An URL of the form above is interpreted as pouting to a file
on the host signature.gif. In this case the error message is
a bit misleading, you have to fix the URL, use either a
relative URL:
  signature.gif
or an absolute URL:
  file:///some/directory/signature.gif

> How do I define the base directory?
  http://marc.theaimsgroup.com/?l=fop-dev&m=101777546120252&w=2


> Are there alternatives to using a base
> directory, like the classpath?
Currently not.

J.Pietschmann