GetPageAssociatedFileCount
嵌入文件
描述
返回单个页面在其 /AF 数组中携带的相关联文件数量
语法
Delphi
Function GetPageAssociatedFileCount(PageNumber: Integer): Integer;参数
| PageNumber | 要统计其 /AF 数组的页码,从 1 开始;越界值返回 0 |
|---|
返回值
| N | 页面 /AF 条目数量;页面没有绑定或页码无效时为 0 |
|---|
备注
每个条目对应一个文件规格;使用 GetPageAssociatedFileEmbeddedIndex 解析其嵌入流
示例
for I:= 1 to PDF.PageCount do Count:= Count+ PDF.GetPageAssociatedFileCount(I);