THPDFPage.SetPageAdditionalAction Method
Method summary: THPDFPage.SetPageAdditionalAction MethodTHPDFActionBuilder under the current page /AA dictionary
Declaration
procedure SetPageAdditionalAction(Trigger: THPDFPageActionTrigger; Action: THPDFActionBuilder);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Trigger | Page additional-action trigger, either patOpen or patClosepatOpen or patClose |
Action | Action chain built with THPDFActionBuilderTHPDFActionBuilder |
Usage notes
- The method replaces any existing action for the same page trigger and keeps the other trigger intact
- THPDFActionBuilder.ThenAction chains are preserved under the emitted /Next entry
THPDFActionBuilder.ThenActionchains are preserved under the emitted/Nextentry - Builder validation enforces PDF/A and PDF/X restrictions for JavaScript, SubmitForm, Launch, and other restricted action types
Related API
- THPDFPageActionTrigger Type
- THPDFPage.SetPageOpenAction Method
- THPDFPage.SetPageCloseAction Method
- THPDFActionBuilder Class