TPDFCompressionLevel Type
Selects the zlib effort level used when compressing streams while saving a document
Declaration
TPDFCompressionLevel= (clNone, clFastest, clDefault, clMaximum);
Unit
HPDFDoc
Values
| Value | Meaning |
|---|---|
clNone |
No content-stream compression; structural streams keep their default Flate form |
clFastest |
Maps to the fastest zlib effort level (zcFastest) |
clDefault |
Maps to the standard zlib effort level (zcDefault); the property default |
clMaximum |
Maps to the maximum zlib effort level (zcMax) |
Usage notes
- Assign through the
CompressionLevelproperty ofTHotPDF;clDefaultis the declared default TPDFVersionManager.GetPreferredCompressionLevelderives a level from the document mode:dmLegacyyieldsclNone,dmStandardyieldsclFastestanddmEnhancedyieldsclMaximum- The xref stream always carries
/Filter /FlateDecoderegardless of the level, so opting out withclNoneonly affects content-stream compression