THPDFCompressionMethod Type
Selects the stream compression the library applies whilst writing the document
Declaration
THPDFCompressionMethod= (cmNone, cmFlateDecode);
Unit
HPDFDoc
Values
| Value | Meaning |
|---|---|
cmNone | Write content and other compressible streams without compression |
cmFlateDecode | Compress streams with Flate (zlib) and mark them with the /FlateDecode filter |
Usage notes
- Assign a value of this type to the THotPDF.Compression property (or call SetCompressionMethod) before generating pages so that content streams are written with the selected method
- The default is cmNone; when the output target does not support compression the library resets the method to cmNone automatically
- For smaller files choose cmFlateDecode, which is the only compression method the property currently offers