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
| Name | Purpose |
|---|---|
PageIndex | Zero-based generated or loaded page index |
Trigger | Page additional-action trigger, either patOpen or patClose |
Action | Action chain built with THPDFActionBuilder |
Usage notes
- This method does not change
CurrentPageNumberor the active drawing page - The same trigger on the selected page is replaced while other page triggers remain intact
- Use the
THPDFPagemethod when the target is already the current page
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