PoDoFo 0.9.0 is out, refactored and enhanced
New version of PoDoFo library is out with lots of internal changes as well as several useful new features.
There are three major changes in this version, as well as beginnings of new some features.
First of all, the PoDoFo architecture got a complete overhaul, started a while before releasing the previous version. Also, since this version there is just one library called libpodofo now, thus making podofo-base and podofo-doc libs rest in peace.
The second major change is a new tool called podofocolor which can convert colors in a PDF file following certain rules. For rules definition you can use Lua. The tools/podofocolor/example.lua file contains several samples: IsNearlyTheSameRGB, IsNearlyGray, ConvertRGBToGrayscale and ConvertRGBToCmyk.
Finally, the source code now has a much better coverage by unit tests which helps identifying regressions and is most helpful to developers, not users.
The list of smaller changes goes like this:
- a TIFF predictor was implemented, and predictor implementation was fixed;
- several memory leaks and crashes were fixed;
- PoDoFos garbage collection for PDF files is now available through the public API, a small tool called podofogc was added for testing it;
- Type1 subsetting was implemented, and Type1 embedding was fixed by Ulrich Arnold;
- initial support for PDF signing was added by Petr Pytelka
- compilation with libpng 1.5 was fixed;
- several font issues were fixed by Nenad Novak, and width key from font metrics is now read thanks to Petr Pytelka;
- man pages, contributed by Scribus developer Oleksandr Moskalenko.
PoDoFo is currently available as source code archive. You can find packages of 0.9.0 already for SUSE Enterprise Linux, OpenSUSE, Mandriva and Fedora in Scribus repositories. Packages for Debian and Ubuntu are expected within next few days. There is also a build for Puppy Linux by dingodog available.
PoDoFo is used by applications like Scribus (EPS and PDF embedding, AI v9+ importing) and Fontmatrix. Apart from being a library, PoDoFo has several console tools useful for mere mortals like you and me: cropping, merging and impositioning of PDFs and suchlike.