TPDFCompressionLevel Type
Selects the zlib effort level used whilst compressing streams as a document is saved
Declaration
TPDFCompressionLevel= (clNone, clFastest, clDefault, clMaximum);
Unit
HPDFDoc
Values
| Value | Meaning |
|---|---|
clNone |
No content-stream compression; structural streams keep the Flate form they have by default |
clFastest |
Maps onto the fastest zlib effort level (zcFastest) |
clDefault |
Maps onto the standard zlib effort level (zcDefault); the property default |
clMaximum |
Maps onto the maximum zlib effort level (zcMax) |
Usage notes
- Assign via the
CompressionLevelproperty ofTHotPDF;clDefaultis the declared default TPDFVersionManager.GetPreferredCompressionLevelderives a level from the document mode:dmLegacygivesclNone,dmStandardgivesclFastestanddmEnhancedgivesclMaximum- The xref stream always carries
/Filter /FlateDecodewhatever the level, so opting out withclNonetouches only content-stream compression