Optimizing PDF documents by controlling image compressions
The PDF specification allows for seven compression schemes, all of which can be used to compress images. Two of them offer particularly exciting optimization opportunities: JBIG2 methods for bitonal images (usually black and white) and JPEG2000 for 24-bit color and 8-bit grayscale images. If it is necessary to recompress images in an existing PDF file with these specific compression schemes, the GdPicturePDFReducer class offers to take full control over the process. With the help of PDFReducerConfiguration class, you only need to select required options for the compression. Both pros and cons of these compression schemes are discussed in details in this beneficial article.
This example shows the usage of the GdPicturePDFReducer class, effortless and straightforward for this purpose.