THPDFActionBuilder Class
构建可复用的 PDF action 字典,用于文档打开动作、注释动作和按钮动作
声明
THPDFActionBuilder = class(TObject)
单元
HPDFDoc
参数
| 名称 | 用途 |
|---|---|
URI | THPDFActionBuilder 工作流使用的输入值 |
JavaScript | THPDFActionBuilder 工作流使用的输入值 |
SubmitForm | THPDFActionBuilder 工作流使用的输入 |
SubmitFormFields | 构建作用于命名字段的提交动作 |
ResetForm | THPDFActionBuilder 工作流使用的输入 |
ResetFormFields | 构建作用于命名字段的重置动作 |
Hide | THPDFActionBuilder 工作流使用的输入值 |
Show | THPDFActionBuilder 工作流使用的输入值 |
ImportData | THPDFActionBuilder 工作流使用的输入值 |
Named | THPDFActionBuilder 工作流使用的输入值 |
GoToNamedDestination | THPDFActionBuilder 工作流使用的输入 |
GoToPage | 构建带直接页面目标的本地页面导航动作 |
GoToRemote | 构建以页面索引为目标的远程文档导航动作 |
GoToRemotePage | 构建带 fit 模式目标坐标的远程文档导航动作 |
GoToRemoteNamedDestination | 构建以命名目标为对象的远程文档导航动作 |
Launch | 构建外部文件 Launch 动作,可选新窗口行为 |
Thread | 构建以命名线程目标为对象的文档线程导航动作 |
Sound | 用调用方提供的音频字节与 THPDFSoundParams |
Movie | 为 AddMovieAnnotation 返回的字典构建 Movie 动作 |
Rendition | 为 Screen 注释与媒体文件规格构建 Rendition 动作 |
SetOCGState | 为已注册的可选内容组构建图层可见性动作 |
ShowLayer | 构建打开图层的 SetOCGState 动作 |
HideLayer | 构建关闭图层的 SetOCGState 动作 |
ToggleLayer | 构建切换图层的 SetOCGState 动作 |
Transition | 构建带页面转场字典的 Trans 动作 |
GoTo3DView | 为 3D 注释与视图名构建 GoTo3DView 动作 |
ThenAction | THPDFActionBuilder 工作流使用的输入值 |
使用说明
ThenAction owns the supplied next builderCallers can free the builder after HotPDF builds the PDF action dictionaryGoToPage 使用从 0 开始的页面索引,并对照文档中已有页面校验目标GoToRemotePage 使用远程文档中从 0 开始的页面索引,接受与 GoToPage 相同的 fit 模式SubmitFormFields 与 ResetFormFields 从 Unicode 安全的字段名写出 Fields 数组GoToRemoteNamedDestination 与 Launch 在输出的文件规格中规范化 Windows 文件分隔符PDF/A 或 PDF/X 合规激活时,Launch 会被自动拒绝PDF/A 或 PDF/X 合规激活时,Sound、Movie、Rendition、SetOCGState、Transition 与 GoTo3DView 会被自动拒绝SetOCGState 需要经 RegisterOptionalContentGroup 返回的图层名称Movie、Rendition 与 GoTo3DView 消费对应注释辅助方法或 LastAnnotation 返回的注释字典同一条 builder 链需要从 catalog、注释、表单字段、控件或页面触发器字典运行时,使用文档生命周期动作辅助方法、SetAnnotationAdditionalAction、SetFormFieldAdditionalAction、表单字段动作便捷辅助方法与 SetPageAdditionalAction当应用需要在已加载或生成的 PDF 文档中使用此 PDF action builder 工作流时,使用此 API
相关 API
- THotPDFSetOpenActionMethod
- THotPDFSetDocumentCloseActionMethod
- THotPDFSetDocumentWillSaveActionMethod
- THotPDFSetDocumentDidSaveActionMethod
- THotPDFSetDocumentWillPrintActionMethod
- THotPDFSetDocumentDidPrintActionMethod
- THPDFPageSetAnnotationActionMethod
- THPDFPageSetAnnotationAdditionalActionMethod
- THotPDFSetFormFieldAdditionalActionMethod
- THotPDFFormFieldActionConvenienceMethods
- THPDFPageClearAnnotationAdditionalActionMethod
- THPDFPageSetPageAdditionalActionMethod
- THotPDFSetPageAdditionalActionMethod
- THPDFPageAddPushButtonWithActionBuilderMethod