GNOME Bugzilla – Bug 644544
Let GIMP allow to switch of antialiasing in PDF
Last modified: 2012-02-02 16:34:16 UTC
When I choose to open a PDF file in GIMP, there is no way to tell poppler not to use antialiasing. The resulting image is not reducible to a small number of colours: important colours merge while antialiasing colours remain. Moreover, altialiasing patterns dramatically reduce the efficiency of lossless compression. Workaround: call poppler directly: { pdftoppm -aa no -aaVector no x.pdf x; }
I have a better soluion: provide a patch please :)
This is currently not possible as poppler-glib doesn't expose API for it, and we'd have to use C++ code. I'll try to make a patch for poppler-glib first.
I guess this bug's answer is going to remain "No" for a while till poppler's cairo output device implements it.
Created attachment 206637 [details] [review] Proposed patch Switching off cairo context's antialiasing seems to work: with the attached patch (and cairo and pango from git master), the colorcube analysis of the imported pdf file attached to the next comment shows 258/4 unique colors with antialiasing enabled/disabled for the record pkg-config --modversion poppler 0.18.0
Created attachment 206638 [details] Test case mentioned in the previous comment
Pushed to master. Resolving bug as FIXED, milestone 2.8. commit 389c73d4929d883bf2a28499cd9254eb722f1b01 Author: Massimo Valentini <mvalentini@src.gnome.org> Date: Thu Feb 2 15:04:07 2012 +0100 file-pdf-load: Bug 644544: Let GIMP allow to switch off antialiasing in PDF