THPDFPage.SetAnnotationAdditionalAction Method
Method summary: THPDFPage.SetAnnotationAdditionalAction MethodTHPDFActionBuilder under the annotation /AA dictionary
Declaration
procedure SetAnnotationAdditionalAction(Annot: THPDFDictionaryObject; Trigger: THPDFAnnotationActionTrigger; Action: THPDFActionBuilder);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
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 THPDFActionBuilderTHPDFActionBuilder |
Usage notes
- The method replaces any existing action for the same trigger key and keeps other /AA entries unchanged
/AAentries unchanged - Use
ClearAnnotationAdditionalActionto remove one annotation additional-action entry without rebuilding the annotation dictionary THPDFActionBuilder.ThenActionchains are preserved under the emitted/Nextentry- Mouse and focus triggers use
/E,/X,/D,/U,/Fo, and/Bl - Page-open, page-close, page-visible, and page-invisible triggers use
/PO,/PC,/PV, and/PIand require PDF 1.5 - Use ClearAnnotationAdditionalAction to remove one annotation additional-action entry without rebuilding the annotation dictionary
- THPDFActionBuilder.ThenAction chains are preserved under the emitted /Next entry
SetAnnotationJavaScriptActionfor the JavaScript-only convenience path
Related API
- THPDFActionBuilderClass
- THPDFPageSetAnnotationActionMethod
- THPDFPageClearAnnotationAdditionalActionMethod
- THPDFPageSetAnnotationJavaScriptActionMethod