Chris, There a number of warnings, but none that relate missing images. I will attach the text file of these. When I build the app, in the lib folder, I have the following jar files:
avalon-framework-4.2.0 batik-all-1.7 commons-io-1.3.1 commons-logging-1.0.4 fop serializer-2.7.0 xalan-2.7.0 xercesImpl-2.7.1 xml-apis-1.3.04 xml-apis-ext-1.3.04 xmlgraphics-commons-1.4 As I stated previously, I'm pretty green when it comes to Java, so I am not really sure how/where I would need to make any changes. I based this app off the example code that comes with FOP in the examples folder, and am trying to use it in a GUI setting. Thanks for the reply. -----Original Message----- From: Chris Bowditch [mailto:[email protected]] Sent: Tuesday, December 21, 2010 11:25 AM To: [email protected] Subject: Re: FOP embedded in Java app not rendering graphics On 21/12/2010 15:50, twfurst wrote: > Hello, Hi > I am hoping that someone will be able to tell me what I've done wrong. I am > attempting to build a GUI interface for using FOP for a customer to publish > their XML based manuals to PDF. I am pretty green in Java, but following a > few tutorials, I have managed to create an app that 90% works. FOP is > processing the XML, but it is not rendering any of the graphics into the > PDF. When I run the same XML/XSL-FO from the CMD prompt, everything runs > fine. I am using FOP 1.0. Does FOP log any warnings/errors related to the missing images? Logging is done via commons logger which you will have to configure within your own application. At a guess the images could be missing due to classpath issues in your own application. Depending on the type of image you will need some extra libraries in your classpath to support them , e.g. batik.jar or imageio-tools.jar > I attempted to attach the app, but it is above the size limit for upload. I > am going to place the Java code into a .txt file, and maybe someone can tell > from that what the issue is. > > http://old.nabble.com/file/p30507137/nabbleUpload.zip nabbleUpload.zip > > I am pretty confident that it is something simple that I have omitted. > > Thank you for your help. Thanks, Chris > Tom Furst --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
