On 23.06.2010 15:34:28 Craig Ringer wrote: <snip/> > I don't know much about fop's PDF output capabilities, so I can't tell > you much about what it's doing with its input and how it produces the > output. In particular, I haven't the foggiest if it can render SVG > directly to PDF or if it's flattening it, and if it does try to render > it to PDF what cases it has to fall back to flattening for.
FOP produces decent vector graphics output by default from SVG. Flattening to a bitmap is available with an extension attribute. But FOP doesn't produce Form XObjects so when the same SVG is used over and over, it will be output to the PDF as many times. Besides that, FOP currently always embeds images as is. It doesn't support resampling. There is currently room for improvement concerning Flate compression: FOP currently doesn't support the PNG predictors. The could improve the compression factor a bit (!) for images that are not compressed with JPEG compression. TIFF images with CCITT compression are embedded as is if many cases (but not all). I've got a clean-room CCITT algorithm implementation but that's not published, yet. But of course, that would only help with bi-level images. However, for bi-level images a JBIG2 implementation would be even better. Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
