THPDFPage.SetAnnotationAdditionalAction Method
สรุปเมธอด: THPDFPage.SetAnnotationAdditionalAction Method
การประกาศ
procedure SetAnnotationAdditionalAction(Annot: THPDFDictionaryObject; Trigger: THPDFAnnotationActionTrigger; Action: THPDFActionBuilder);
ยูนิต
HPDFDoc
พารามิเตอร์
| ชื่อ | วัตถุประสงค์ |
|---|---|
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 |
หมายเหตุการใช้งาน
- 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