According to PDF format spec, it has various image compression filters including CCITTFaxDecode.
I'm using libharu
and need to explicitly set compression filter to CCITTFaxDecode for all images in the generated PDF.
How can I tell libHaru
to use CCITT compression for images in PDF?
Below is the where I am currently.
From the libHaru
documentation, it has HPDF_SetCompressionMode()
function which has the argument named mode
. The argument has the HPDF_COMP_IMAGE
option enabling images compression. But it's not clear how to choose which compressor to use.
Another thing, among libHaru
source files there is CCITT compressor (hpdf_image_ccitt.c
), but I can't figure out how to explicitly set it as the compressor for images.
Any help is greatly appreciated.