TPDFlibSaveOptions
Data Types
Description
TPDFlibSaveOptions is a record structure that bundles compression, formatting, and optimisation choices when writing or exporting a PDF document.
Syntax
Delphi
type TPDFlibSaveOptions = record
CompressContent: Boolean;
CompressFonts: Boolean;
CompressImages: Boolean;
Linearize: Boolean;
KeepModDate: Boolean;
OptimizeContentStreams: Boolean;
GarbageCollect: Boolean;
PackObjectStreams: Boolean;
end;Fields
| CompressContent | Enables compression of textual page content streams. |
|---|---|
| CompressFonts | Enables compression of embedded TrueType/Type1 font program streams. |
| CompressImages | Enables compression of uncompressed raster image pixel streams. |
| Linearize | Applies post-save linearisation processing, optimising the PDF catalogue structure for fast web viewing (progressive page loading) |
| KeepModDate | Preserves the original modification date (/ModDate) in the document info dictionary. |
| OptimizeContentStreams | Runs the peephole content-stream optimiser whilst compressing page content; it only applies output-equivalent transforms and defaults to True |
| GarbageCollect | Runs a mark-sweep collection of unreferenced indirect objects during a full save; defaults to False |
| PackObjectStreams | Packs eligible objects into PDF 1.5 object streams and writes an xref stream (PDF 1.5 and later only); defaults to True |