THPDFPage.SetAnnotationAdditionalAction Method
Resumen del método: THPDFPage.SetAnnotationAdditionalAction Method
Declaración
procedure SetAnnotationAdditionalAction(Annot: THPDFDictionaryObject; Trigger: THPDFAnnotationActionTrigger; Action: THPDFActionBuilder);
Unidad
HPDFDoc
Parámetros
| Nombre | Propósito |
|---|---|
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 |
Notas de uso
- 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