Mailing List
Home
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 ...
Subjects
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
CREATING WAR Files
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
attribute
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 error

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

2007-12-05       - By Ashish Kulkarni

 Back
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

Hi<br>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<br>and in my xsl file i have
the following image tag<br>&lt;fo:block &gt;<br>                     &lt;fo:external
-graphic src=&quot;url(&#39;
myimage.jpg&#39;)&quot;<br>                       content-height=&quot;0.5cm&quot; content
-width=&quot;0.5cm&quot; display-align=&quot;center&quot; /&gt;<br>                   &lt;
/fo:block&gt;<br><br>But i get following error<br>[ERROR] Error while creating
area : Error with image URL:
myimage.jpg (The system cannot find the file specified) and no base URL is
specified<br><br>I copied in the image in <br>C:\Documents and Settings\Userid
which user.home , but still it does not find the issue<br><br>How can i get it
working, i cannot hardcode the path, since i am not sure what it will be at
runtime
<br><br>Ashish<br>