java - No imagePreloader found - XML to PDF using FOP -
i'm trying create pdfs xml data. i'm using apache fop 1.1 java in windows. application runs in eclipse, when try run exported .jar images not placed in pdf. i've tryied running @ cdm in order see log of runtime. here exception:
grave: image not available. uri: out/iberdrola.png. reason: org.apache.xmlgraphics. image.loader.imageexception: file format not supported. no imagepreloader found out/iberdrola.png (no context info available) org.apache.xmlgraphics. image.loader.imageexception: file format not supported. no imagepreloader found out/iberdrola.png @ org.apache.xmlgraphics.image.loader.imagemanager.preloadimage(imagemanager.java:180)
i've explain if it's exception, program runs until end , pdf rendered without image.
i've tryied different ways solve problem, no success. of information i've googled relates servelts, i'm not programming servelt. way, here give 2 different solutions have worked others. related spect procedure different. don't know how try them, explain me better? if explained there must step i'm missing.
http://apache-fop.1065347.n5.nabble.com/fop-1-0-images-fail-to-render-td7348.html
apache fop in java applet - no imagepreloader found data
i'm open other solution problem.
thanks in advice! have nice code!
i came out solution. don't know wich of 2 steps made 1 solved everything, here is.
firstly, changed libraries of project. realised fop_1.1.jar using wasn't official 1 provided apache. went official site , downloaded binary version. added buildpath fop library , rest of dependent libraries of folder called 'lib'.
then, increased compilation version of java. using 1.4 version , many of libs used require 1.5 or above. realised of computers nowadays use 1.7 or above set 1.7.
i can't tell of 2 solutions made miracle, further projects check before i'm using correct libraries , have check minimum compilation version.
have nice code!
Comments
Post a Comment