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 Psi Aushilfe3 <Au...@prosieben.de> on 2003/07/29 13:39:44 UTC

URLs in external-graphics -> corrupt PDF

Hi!

I was trying to put an absolute http URL into an <fo:external-graphics>
src attribute and got an corrupted PDF which Acrobat refuses to open. If
I use an relative local file system path everything works just fine.

Can't I use URLs?! ...or what may I be doing wrong?

Thanks!

Re: URLs in external-graphics -> corrupt PDF

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Psi Aushilfe3 wrote:
> I was trying to put an absolute http URL into an <fo:external-graphics>
> src attribute and got an corrupted PDF which Acrobat refuses to open. If
> I use an relative local file system path everything works just fine.

Narrow down the problem:
1. Does FOP signal any errors related to the external graphic?
2. Can you see the image if you point a browser on the machine
  where FOP should run to the HTTP URL?
3. Can you download the image to a local file with wget (no
  cookies, referers, common user agents...), and is this the
  image you expect??
The most common causes for the sympoms you describe are spelling
errrors in the URL and server setups which require certain
context information from the browser.

Some more context would have helped too: FOP release number,
the URLs in question, the image format, whether you run FOP
from the CLI or embedded... Psychic powers are still in
limited supply.

J.Pietschmann



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


RE: URLs in external-graphics -> corrupt PDF

Posted by Victor Mote <vi...@outfitr.com>.
Psi Aushilfe3 wrote:


<--- Start -->
I was trying to put an absolute http URL into an <fo:external-graphics> src
attribute and got an corrupted PDF which Acrobat refuses to open. If I use
an relative local file system path everything works just fine.
Can't I use URLs?! .or what may I be doing wrong?
<--- End --->

AFAIK, you should be able to use URLs. Check your syntax against:
http://xml.apache.org/fop/fo.html#external-resources

I can't tell from your report whether you tested the same image on a local
file system as you tried using the URL. If not, be sure to try that, to try
to eliminate the possibility that the image itself is causing the problem.
Also, be sure to turn on the "-d" option for debugging, and look in the log.

Victor Mote


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