- From: Olaf Wentzien <olaf.wentzien@ppi.de>
- Date: Mon, 26 Jul 2004 08:52:08 +0200
- To: www-xsl-fo@w3.org
Hi,
first try to fetch an URL of the 'real' world, something like
http://www.google.com/foobar.jpg
to exclude any other errors,
second set the baseDir-property.
baseDir is a property used in resolving of relative uris, see faq[1] how
can
you set it up.
[1] http://xml.apache.org/fop/faq.html#faq-N102EE
Greetings
Olaf Wentzien
PPI Financial Systems
Hindenburgstraße 49
22297 Hamburg
Telefon: +49 40 / 22 74 33 - 343
Mobil: +49 160 / 367 74 34
Telefax: +49 40 / 22 74 33 - 320
E-Mail: mailto:olaf.wentzien@ppi.de
Web: http://www.ppi.de
www-xsl-fo@w3.org
Gesendet von: www-xsl-fo-request@w3.org
22.07.2004 22:23
An: <www-xsl-fo@w3.org>
Kopie:
Thema: external-graphic src problem
Problem - Cannot render - external-graphic src attribute
Using Fop 0.20.5 - Standalone Swing application
** Application is a standalone Java Swing application. Cannot seem to get
a jpg to render in my pdf unless I hardcode the complete path to the image
in the external-graphic src attribute. The data in the pdf renders fine,
just no image. The image file is located in the same directory as the xsl
file.
I have seen others post similar questions on various mailing lists, most
with no real solution. Any help would be greatly appreciated. Thanks
I have tried the following: (none of these render the image)
If I use the complete path to the image all of these work
<fo:block>
<fo:external-graphic
src='url("com\some\image\path\image.jpg")'>
</fo:external-graphic>
</fo:block>
[ERROR] Error while creating area : Error with image URL:
com\some\image\path\image.jpg (The system cannot find the path specified)
and no base URL is specified
also tried these src values, and some others that did not work. (The error
received follows each)
<fo:external-graphic src='url("file:com\some\image\path\image.jpg")'>
[ERROR] Error while creating area : Error with image URL:
com\some\image\path\image.jpg (The system cannot find the path specified)
and no base URL is specified
<fo:external-graphic
src='url("file:///com\some\image\path\image.jpg")'>
[ERROR] Error while creating area : Error with image URL:
\com\some\image\path\image.jpg (The system cannot find the path specified)
and no base URL is specified
<fo:external-graphic
src="file:///com\some\image\path\image.jpg">
[ERROR] Error while creating area : Error with image URL:
\com\some\image\path\image.jpg (The system cannot find the path specified)
and no base URL is specified
<fo:external-graphic src="file:com\some\image\path\image.jpg">
[ERROR] Error while creating area : Error with image URL:
com\some\image\path\image.jpg (The system cannot find the path specified)
and no base URL is specified
<fo:external-graphic src="com\some\image\path\image.jpg">
<fo:external-graphic src="file://image.jpg">
[ERROR] Error while creating area : Error with image URL:
Connection timed out: connect and no base URL is specified
Danny Gallagher
Senior Software Engineer
The Gainer Group
6075 The Corners Parkway
Suite116
NorcrossGa, 30092
Received on Monday, 26 July 2004 02:52:40 UTC