ClearPagePieceInfo
页面属性
描述
从一个页面移除完整的 PieceInfo 字典
语法
Delphi
Function ClearPagePieceInfo(PageNumber: Integer): Integer;参数
| PageNumber | 基于 1 的页码 |
|---|
返回值
| 0 | 没有选定文档、页面无效、页面字典不可用或没有要移除的 /PieceInfo 条目 |
|---|---|
| 1 | 页面的 /PieceInfo 条目已移除 |
备注
该操作移除所选页面上 /PieceInfo 下的所有应用字典,而不是单个 AppName 或 Key
移除成功后再次调用该函数会返回 0
示例
if PDF.ClearPagePieceInfo(1)= 0 then
Log("No PieceInfo entry was removed");