THPDFLoadedDocumentCompressionOptions Record
Selects the steps THotPDF.CompressLoadedDocument runs on a loaded document. Every step is lossless
RemoveUnusedResources drops page resources no content uses
DeduplicateResources merges identical embedded fonts and Form XObjects
SubsetFonts reduces embedded fonts to the glyphs the document shows, and CompactFontSubsets makes those subsets compact where the font allows it; see THPDFLoadedFontSubsetOptions
RecompressStreams rewrites unfiltered, Flate, LZW, ASCII85, ASCIIHex and RunLength streams with FlateDecode when that is smaller; HighRatioFlate spends more time for a smaller result
UseObjectStreams writes the next save with a cross-reference stream and object streams of up to 250 objects each, unless ConfigureAdaptiveObjectStreamPacking set another limit; it is skipped for PDF/A-1 and for incremental updates, and raises the version to PDF 1.5 when needed and allowed
AllowSignatureInvalidation lets the call rewrite a document that carries signature fields, which invalidates the signatures
Default turns on every step except HighRatioFlate and refuses signed documents