Mailing List
Forum Home
Maven - Project building tool
Axis - Java SOAP implementation
Lucene - Full-featured text search engine APIs
Cocoon - MVC web framework based on XML/XSL
Fop - Create PDF, PCL, PS, SVG, XML driven by XSL formatting objects.
Log4J - A log library
POI - Java Excel, Word and other Microsoft Office files manipulating library
Oracle database error code ...
log4j warning: No appenders could be found
java security AccessControlException: access denied (java io FilePermission clie
java lang InstantiationException: org apache tools ant Main
Apache Axis Tutorial
Subject: Struts <logic iterate >
log4j properties How to parse outpu to multiple files
configuring log4j with BEA Weblogic 8 1
How to use XSL FOP Java together
JSP precompile
Proposal: Adding jar manifest classpath in jar and war plugins
Servlet File Download dialog problem (IE6,Adobe 6 0)
java security AccessControlException: access denied (java io FilePermission
Unsupported major minor version 48 0 problem while running the an
   telope task
Subject: axis wsdl2java Ant Task usage
net sf hibernate MappingException: Error reading resource: test/User hbm xml
Building EAR ANT Script for websphere 5 0
Classpath problem
jsp data into Excel
Jboss 3 2 3+ vs Tomcat Axis Question
RE: How to include jars and add them into the MANIFEST MF/Class Path
Printing problem
Subject: InstantiationException
Couldn 't find trusted certificate
Please : How can one install ant 1 6 0 under Eclipse 2 1 ?
Excel: Too many different cell formats
Subject: AXIS: tomcat timeout ?
1 3 final: now giving me java io FileNotFoundException (Too many
open files)
XDoclet, Struts and Maven: Where to start? SOLUTION
Subject: Running junit tests fails
issue with adding image to pdf file, system cannot find the file specified e

issue with adding image to pdf file, system cannot find the file specified e

2007-12-06       - By Jeremias Maerki

FOP doesn't look in the user.home just like that when it encounters a
relative URI/filename. If nothing special is done, the relative URIs are
resolved relative to the current directory. You can, however, override
the base directory/URI. This is described here:

Configuration file:
(see "base" setting)

Embedded use:
(see "fopFactory.setBaseURL()" or "userAgent.setBaseURL()")

On 05.12.2007 21:59:42 Ashish Kulkarni wrote:
> Hi
> I am trying to add image in a pdf file, i am working on windows and have the
> jpg image and xsl style sheet in same folder
> and in my xsl file i have the following image tag
> <fo:block >
> <fo:external-graphic src="url('myimage.jpg')"
> content-height="0.5cm" content-width="0.5cm" display-align="center" />
> </fo:block>
> But i get following error
> [ERROR] Error while creating area : Error with image URL: myimage.jpg (The
> system cannot find the file specified) and no base URL is specified
> I copied in the image in
> C:\Documents and Settings\Userid which user.home , but still it does not
> find the issue
> How can i get it working, i cannot hardcode the path, since i am not sure
> what it will be at runtime
> Ashish

Jeremias Maerki

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: fop-users-unsubscribe@(protected)
For additional commands, e-mail: fop-users-help@(protected)