PDFium Delphi Component Docs

LifecycleActionPolicy property

Component: TPdf  ·  Unit: PDFium
Controls when document and page lifecycle actions run

Syntax

property LifecycleActionPolicy: TPdfLifecycleActionPolicy read FLifecycleActionPolicy write FLifecycleActionPolicy default lapAutomatic;

Description

LifecycleActionPolicy selects how the component treats document and page lifecycle actions: lapDisabled never runs them, lapManual leaves execution to the host through ExecuteDocumentLifecycleAction and ExecutePageLifecycleAction, and lapAutomatic runs them at the matching load, save, print and page-open moments

The default is lapAutomatic

Remarks

Example

Pdf1.LifecycleActionPolicy := lapManual;

See Also

ExecuteDocumentLifecycleAction, ExecutePageLifecycleAction, Lifecycle actions