SetCompression(boolean compress)
Enables or disables page compression. When enabled, the internal representation of each page is compressed, which leads to a compression ratio of about 2 for the resulting document.
Compression is enabled by default.
Note: the Zlib extension is required for this feature. If not present, compression will be disabled.
compress
: Boolean indicating whether compression should be enabled.