TPDFlibSaveOptions

Data Types

Description

TPDFlibSaveOptions is a record structure that bundles compression, formatting, and optimization 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

CompressContentEnables compression of textual page content streams.
CompressFontsEnables compression of embedded TrueType/Type1 font program streams.
CompressImagesEnables compression of uncompressed raster image pixel streams.
LinearizeApplies post-save linearization processing, optimizing the PDF catalog structure for fast web viewing (progressive page loading).
KeepModDatePreserves the original modification date (/ModDate) in the document info dictionary.
OptimizeContentStreamsRuns the peephole content-stream optimiser while compressing page content; output-equivalent transforms only, defaults to True
GarbageCollectRuns mark-sweep collection of unreferenced indirect objects during a full save; defaults to False
PackObjectStreamsPacks eligible objects into PDF 1.5 object streams and emits an xref stream (PDF 1.5+ only); defaults to True

See also

SaveToFileOptions