You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Pablo Iaria <ia...@tutopia.com> on 2001/08/29 15:17:21 UTC

Image problem

Hi all,
    I'm triying to insert an image into a document. 

I have the following code:

<fo:block>
    <fo:external-graphic height="48px" width="131px" src="file:theImage.gif"/>
</fo:block>

and I get the following error:

"Error while creating area : Invalid Image URL - error on relative URL : no protocol: theImage.gif"

What am I doing wrong ?

Thanks in advance,
    Pablo.-

PS: the image file is placed in the same fop file directory.

Re: Image problem

Posted by Daniel Knapp <sk...@informatik.uni-rostock.de>.
>
> <fo:block>
>     <fo:external-graphic height="48px" width="131px" src="file:theImage.gif"/>
> </fo:block>
>
> and I get the following error:
>
> "Error while creating area : Invalid Image URL - error on relative URL
> : no protocol: theImage.gif"
>
> What am I doing wrong ?


Have you tried other possibilities or is this your first try? Try
including the image without the leading 'file:'. If this doesn't work you
should try the absolute path and adding './' before the image.

Hope that helps.

MfG, Daniel

-- 
Daniel Knapp <da...@informatik.uni-rostock.de>
int a=10000,b,c=2800,d,e,f[2801],g;main(){for(;b-c;)f[b++]=a/5;for(;d=0,
g=c*2;c-=14,printf("%.4d",e+d/a),e=d%a)for(b=c;d+=f[b]*a,f[b]=d%--g,d/=
g--,--b;d*=b);} berechnet Pi auf 800 Stellen genau. :-)


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org