I am trying to load images onto my pdf file.  When I use a configuration
file to set my base directory, I have no issues.  The problem arises
when I try to programmatically set my base directory.

Here is my fop.xconf (which works perfectly fine):

<fop version="1.0">

  <!-- Base URL for resolving relative URLs -->
 
<base>/workplace2/projects/DropShip/SelfService/mainline/Website/Central
/src/main/resources/</base>


Under "Customizing the User Agent", I followed the doc:

The base URL to use when resolving relative URLs. Example: 
*       
userAgent.setBaseURL(file:///mydirectory/directory
<file:///mydirectory/directory> );
So I tried doing:
 
foUserAgent.setBaseURL("file:/workplace2/projects/DropShip/SelfService/m
ainline/Website/Central/src/main/resources");
and
 
foUserAgent.setBaseURL(file:///workplace2/projects/DropShip/SelfService/
mainline/Website/Central/src/main/resources);
The error message I get is:
Jun 7, 2007 5:51:48 PM org.apache.fop.fo.flow.ExternalGraphic bind
SEVERE: Image not available: amazon-bw.jpg

Any help with be very much appreciated!
Thanks.

Reply via email to