- From: Danny <danny.gallagher@gainergroup.com>
- Date: Thu, 22 Jul 2004 16:24:01 -0400
- To: <www-xsl-fo@w3.org>
- Message-Id: <20040722202128.59588A1BD9@frink.w3.org>
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 Suite 116 Norcross Ga, 30092
Received on Thursday, 22 July 2004 16:23:00 UTC