ClearPDFDeclarations
合規性
描述
從所選文件目錄移除 /PDF_Declarations 項目
語法
Delphi
Function ClearPDFDeclarations: Integer;傳回值
| 1 | 目錄包含 /PieceInfo 字典且已執行清除作業 |
|---|---|
| 0 | 未載入任何文件、無法解析目錄,或目錄沒有 /PieceInfo 字典 |
備註
此方法會移除 /PDF_Declarations,但保留周圍的 /PieceInfo 字典與任何不相關的私有資料;因此傳回值 1 表示包含字典可供使用,即使沒有任何宣告項目存在
範例
if PDF.ClearPDFDeclarations= 0 then HandleNoPieceInfo;另請參閱
SetPDFDeclarations, HasPDFDeclaration, GetPDFDeclarationsCount, GetPDFDeclarationsURI