THotPDF.SetPageAdditionalAction Method

Installs a page open or page close action on a generated or loaded page selected by zero-based page index

Declaration

procedure SetPageAdditionalAction(PageIndex: Integer; Trigger: THPDFPageActionTrigger; Action: THPDFActionBuilder);

Parameters

NamePurpose
PageIndexZero-based generated or loaded page index
TriggerPage additional-action trigger, either patOpen or patClose
ActionAction chain built with THPDFActionBuilder

Usage notes

Loaded-page preservation

For a loaded page, setting or clearing one trigger preserves the other events and their existing /Next chains when the document is saved and reloaded

If pages share an indirect /AA dictionary, the edit creates a private action dictionary for the selected page so the other pages keep their original events

Loaded-page edits retain the existing graph-transaction rollback and commit behavior; generated-page helpers and the public method declaration are unchanged

Related API