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

Albert Astals Cid aacid at kde.org
Wed Jun 7 21:50:43 UTC 2017


El dimecres, 7 de juny de 2017, a les 18:07:08 CEST, Jeroen Ooms va escriure:
> 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 

Yes

Cheers,
  Albert

> or do I
> manually need to set the image format somewhere in the renderer?
> 
> My full code is here: https://goo.gl/nq6m6f
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/poppler




More information about the poppler mailing list