ClearPDFDeclarations

Compliance

Description

Removes the /PDF_Declarations entry from the selected document catalog

Syntax

Delphi

Function ClearPDFDeclarations: Integer;

Return values

1The catalog contained a /PieceInfo dictionary and the clear operation was performed
0No document is loaded, the catalog cannot be resolved, or the catalog has no /PieceInfo dictionary

Remarks

The method removes /PDF_Declarations but leaves the surrounding /PieceInfo dictionary and any unrelated private data intact; a return value of 1 therefore reports that the containing dictionary was available, even when no declaration entry was present

Example

if PDF.ClearPDFDeclarations= 0 then HandleNoPieceInfo;

See also

SetPDFDeclarations, HasPDFDeclaration, GetPDFDeclarationsCount, GetPDFDeclarationsURI