GetPageAssociatedFileEmbeddedIndex
嵌入文件
描述
返回单个页面 /AF 条目的嵌入流对象编号
语法
Delphi
Function GetPageAssociatedFileEmbeddedIndex(PageNumber, Index: Integer): Integer;参数
| PageNumber | 拥有该 /AF 数组的页码,从 1 开始 |
|---|---|
| Index | 该页 /AF 数组中从 0 开始的位置 |
返回值
| 0 | 页面或索引超出范围,或条目没有 /EF /F 流引用 |
|---|---|
| N | 嵌入文件流的对象编号 |
备注
Index 在页面 /AF 数组内从 0 开始。通过 EmbeddedFiles 名称树定位附件后,返回的对象编号可与 GetEmbeddedFileStrProperty 和 GetEmbeddedFileContentToString 配合使用
示例
ObjNum:= PDF.GetPageAssociatedFileEmbeddedIndex(1, 0);