Just thought i would post a final message to close the thread. Spot on. My file was 82 bytes. Have now upgraded and all is well.
Once again thank you. Jeremias Maerki-2 wrote: > > On 05.08.2008 12:48:53 Lea Thurman wrote: >> >> Hi, >> >> I made some progress with this and have amended my source to render all >> .png's will an alpha channel and in turn set this to transparent. I am >> able >> to open the .png via 3rd party utils and they look perfect however now >> FOP >> is throwing an exception when I attempt to render them to PDF. >> >> I have included the error below, but it is an EOFException which is >> curious >> since all other apps think its is valid. > > The exception happens when you use PNG files that are smaller than 88 > bytes. It's a bug I've fixed already. Please upgrade to XML Graphics > Commons 1.3.1. See > http://xmlgraphics.apache.org/commons/changes.html#version_1.3.1 > Or you can just upgrade to FOP 0.95 final which should be available from > the download mirrors within the next few hours. > >> Does FOP support the linking of images with transparent background? > > I don't understand the question. If "linking" means "embed", then yes. > >> Many Thanks >> Lea >> >> >> java.io.EOFException >> at >> javax.imageio.stream.ImageInputStreamImpl.readFully(ImageInputStreamImpl.java:330) >> at >> javax.imageio.stream.ImageInputStreamImpl.readFully(ImageInputStreamImpl.java:338) >> at >> org.apache.xmlgraphics.image.loader.impl.AbstractImagePreloader.getHeader(AbstractImagePreloader.java:45) >> at >> org.apache.xmlgraphics.image.loader.impl.PreloaderEMF.preloadImage(PreloaderEMF.java:65) > <snip/> >> >> Lea Thurman wrote: >> > >> > Hi all, >> > >> > I am using FOP 0.95beta and I am successfully creating a PDF from an >> SVG >> > document which has a number of image elements which reference .png >> files. >> > >> > The .png files do not have a transparent background - but I was >> wondering >> > whether there was an SVG (or FOP) setting that could enable this. > > Not out of the box. The easiest, as you seem to have done, is rewriting > the PNGs to become transparent. It would theoretically be possible to > implement an extension attribute that lets you specify a transparent > color for an image that FOP would try to use. But I don't think that's a > good idea. > >> > I know it's a long shot and I suspect I need to add this using ImageIO >> > (not sure how though) but I thought I would ask before I go down this >> > route. >> > >> > Thanks >> > Lea. >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Can-FOP-render-my-PNG%27s-with-transparent-backgrounds-tp18828067p18828679.html >> Sent from the FOP - Users mailing list archive at Nabble.com. >> >> > > > > > Jeremias Maerki > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Can-FOP-render-my-PNG%27s-with-transparent-backgrounds-tp18828067p18830932.html Sent from the FOP - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
