PDFNetSetDefaultFlateCompressionLevel Method |
Sets the default compression leve l for Flate (ZLib).
Namespace:
pdftron
Assembly:
pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax public static void SetDefaultFlateCompressionLevel(
int level
)
Public Shared Sub SetDefaultFlateCompressionLevel (
level As Integer
)
public:
static void SetDefaultFlateCompressionLevel(
[InAttribute] int level
)
pdftron.PDFNet.SetDefaultFlateCompressionLevel = function(level);
Parameters
- level
- Type: SystemInt32
An integer in range 0-9 representing the compression value to use as
a default for any Flate streams (e.g used to compress content streams, PNG images, etc).
The library normally uses the default compression level (Z_DEFAULT_COMPRESSION).
For most images, compression values in the range 3-6 compress nearly as well as higher
levels, and do so much faster. For on-line applications it may be desirable to have
maximum speed Z_BEST_SPEED = 1). You can also specify no compression (Z_NO_COMPRESSION = 0).
Default is Z_DEFAULT_COMPRESSION (-1).
See Also