How to configure Apache FOP to use JIMI/JAI for PNG support?
Posted: Mon May 30, 2011 7:53 pm
Hi,
I need to display a logo using my FO customization layer, but after specifying the PNG file in the xsl, I (of course) get this error:
ERROR - Image not available. URI: . Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported. No ImagePreloader found for....
I guess this is as expected, since the oXygen manual (I'm on version 12.2) has a section about how to install PNG support with the JIMI/JAI libraries. I have read that section thoroughly, and I have downloaded and installed the JIMI and JAI libraries. I have added them to both the classpath and my Windows PATH as instructed. I also copied the libraries to [Oxygen-install-dir]\lib just in case. But I still get the same error, so there must be more to this than just these libraries being installed.
The manual claims that "Using them is as easy as downloading them and creating a external FO processor". This does not seem easy at all to me. Installing the libraries, yes, but creating an external FO processor, no. I have no clue how to configure a complicated command line like the one shown in the example there. I have tried to figure out how to do this in the Preferences, by selecting "Use other Apache FOP", but don't know where to go from there, or how to configure Apache FOP or any other FOP. It's not intuitive at all to me.
I hope someone has some tips on how to actually do this...
Thanks,
Oystein
I need to display a logo using my FO customization layer, but after specifying the PNG file in the xsl, I (of course) get this error:
ERROR - Image not available. URI: . Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported. No ImagePreloader found for....
I guess this is as expected, since the oXygen manual (I'm on version 12.2) has a section about how to install PNG support with the JIMI/JAI libraries. I have read that section thoroughly, and I have downloaded and installed the JIMI and JAI libraries. I have added them to both the classpath and my Windows PATH as instructed. I also copied the libraries to [Oxygen-install-dir]\lib just in case. But I still get the same error, so there must be more to this than just these libraries being installed.
The manual claims that "Using them is as easy as downloading them and creating a external FO processor". This does not seem easy at all to me. Installing the libraries, yes, but creating an external FO processor, no. I have no clue how to configure a complicated command line like the one shown in the example there. I have tried to figure out how to do this in the Preferences, by selecting "Use other Apache FOP", but don't know where to go from there, or how to configure Apache FOP or any other FOP. It's not intuitive at all to me.
I hope someone has some tips on how to actually do this...
Thanks,
Oystein