Hi Derrill,

It would be helpful if you could tell us which version of FOP you are
using.  If possible I would recommend you switch to trunk code as this now
contains much tighter configuration that should highlight any
misconfigurations (including unresolved paths) that you may have.

Adrian.

On 08/06/07, Dabkoski, Derrill <[EMAIL PROTECTED]> wrote:

 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);

So I tried doing:

 
foUserAgent.setBaseURL("file:/workplace2/projects/DropShip/SelfService/mainline/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