[poppler] How to render greyscale pdf using c++ api

Jeroen Ooms jeroen at berkeley.edu
Wed Jun 7 16:07:08 UTC 2017


When rendering a black and white pdf file using
poppler::page_renderer, the image always comes out as
image::format_argb32 rather than image::format_mono.

Therefore the png is 4x larger than expected. Is this expected or do I
manually need to set the image format somewhere in the renderer?

My full code is here: https://goo.gl/nq6m6f


More information about the poppler mailing list