THPDFPage.SetAnnotationAdditionalAction Method
把来自 THPDFActionBuilder 的注释附加动作安装到注释的 /AA 字典下
声明
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 | 用 THPDFActionBuilder |
使用说明
- 该方法会替换同一触发键的既有动作,其他
/AA条目保持不变 - 使用
ClearAnnotationAdditionalAction移除单个注释附加动作条目,无需重建注释字典 THPDFActionBuilder.ThenAction动作链会保留在写出的/Next条目之下- 鼠标和焦点触发器使用
/E、/X、/D、/U、/Fo和/Bl - 页面打开、页面关闭、页面可见和页面不可见触发器使用
/PO、/PC、/PV和/PI,并要求 PDF 1.5 - PDF/A and PDF/X restrictions are enforced by the builder when JavaScript, SubmitForm, Launch, or other restricted action types are used
- 仅走 JavaScript 便捷路径时,使用
SetAnnotationJavaScriptAction