On Friday 08 June 2007 15:07, Adrian Cumiskey wrote: > 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] > <mailto:[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/Cent >ral /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/SelfServic >e/m ainline/Website/Central/src/main/resources"); > > > and > > foUserAgent.setBaseURL(file:///workplace2/projects/DropShip/SelfServi >ce/ 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.
Especially if you don't use the trunk version of fop make sure your path terminates with a forward slash if it points to a directory. You conf files seems to do that but your code snippet doesn't. Manuel --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
