THPDFPage.SetAnnotationAdditionalAction Method
Résumé de la méthode: THPDFPage.SetAnnotationAdditionalAction Method
Déclaration
procedure SetAnnotationAdditionalAction(Annot: THPDFDictionaryObject; Trigger: THPDFAnnotationActionTrigger; Action: THPDFActionBuilder);
Unité
HPDFDoc
Paramètres
| Nom | Objectif |
|---|---|
Annot | Annotation dictionary returned by the most recent annotation creation call or another annotation lookup |
Trigger | Additional-action trigger, such as mouse enter, mouse exit, mouse down, mouse up, set focus, or lost focus |
Action | Action chain built with THPDFActionBuilder |
Notes d'utilisation
- The method replaces any existing action for the same trigger key and keeps other /AA entries unchanged
- Use ClearAnnotationAdditionalAction to remove one annotation additional-action entry without rebuilding the annotation dictionary
- THPDFActionBuilder.ThenAction chains are preserved under the emitted /Next entry
- PDF/A and PDF/X restrictions are enforced by the builder when JavaScript, SubmitForm, Launch, or other restricted action types are used
- Use SetAnnotationJavaScriptAction for the JavaScript-only convenience path
Related API
- THPDFActionBuilderClass
- THPDFPageSetAnnotationActionMethod
- THPDFPageClearAnnotationAdditionalActionMethod
- THPDFPageSetAnnotationJavaScriptActionMethod