PDFium Delphi Component Docs

TPdfReadableContentOptions.Default

Unit: PDFium
Options := TPdfReadableContentOptions.Default;
Options.IncludeFormXObjects := True;
Pdf.ReadableContentOptions := Options;

Class static function returning the profile a newly created TPdf installs as its initial ReadableContentOptions

The result keeps every Boolean flag at False — ExcludeArtifacts, all Include* Form and semantic switches and RightToLeft — with zero margins and HeuristicOrder at rhoNative, so unfiltered native and structure order is preserved

The single non-zero setting is ColumnGap at 18 points: it only matters once HeuristicOrder is switched to rhoColumns, so the default profile is ready for column ordering without further gap tuning

Start from this function instead of a locally declared record so later fields with non-zero defaults flow into existing code; use it again when you want to reset the whole policy in one assignment

Assigning a complete record clears existing readable snapshots; build the profile once and keep it stable across reads