set_compress -- Define compression settings
void set_compress ( int level )
This function sets the compression level used to compress PDF streams.
A value of 0 or false will disable compression (the default).
Values between 1 and 9 will be passed to gzcompress()
when
streams are compressed to control the aggressiveness with which compression
is accomplished.
See the documentation on gzcompress()
for more information.
Note that compression can not be set selectively.
generate
is the only function that actually uses this
setting, so the last value set before generate
is called will
be used at generation time.
Turns compression off:
$pdf->set_compress(0);
Sets compression to maximum:
$pdf->set_compress(9);
This method has been removed from the library in version 2. Please pass compression settings to generate()
None known