[poppler] Generic PNM support

Pino Toscano pino at kde.org
Fri Dec 31 09:11:17 PST 2010


Alle venerdì 31 dicembre 2010, Albert Astals Cid ha scritto:
> A Dijous, 30 de desembre de 2010, Pino Toscano va escriure:
> > Hi,
> > 
> > currently, there's only SplashBitmap able to export to PBM/PGM/PPM.
> > I just created a PNMWriter to provide generic export capabilities,
> > even when not using Splash(Bitmap) directly.
> > References:
> > - PBM: http://netpbm.sourceforge.net/doc/pbm.html
> > - PGM: http://netpbm.sourceforge.net/doc/pgm.html
> > - PPM: http://netpbm.sourceforge.net/doc/ppm.html
> > 
> > Attached there's a small patch for pdftoppm to use the new export
> > filter, instead of the own SplashBitmap PNM exporting method.
> 
> What's the benefit of this over the existing code?

The existing code is tied to SplashBitmap, so you cannot use it when 
either you don't have a SplashBitmap at hand, or you are not using 
Splash at all.
Note the SplashBitmap code is still faster for monochrome images, 
because it just outputs their bytes instead of converting them as arg24 
and then being converted back to the proper format by the image writer.

The patch done for pdftoppm was just a quick change to ease testing the 
new image writer.

-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20101231/8143d628/attachment-0001.pgp>


More information about the poppler mailing list