HasPDFDeclaration

Compliance

Description

Tests whether the selected document contains a PDF Declarations entry identified by URI

Syntax

Delphi

Function HasPDFDeclaration(Const URI: WideString): Integer;

Parameters

URIDeclaration URI to find in the document catalog

Return values

1A declaration entry with URI exists
0No matching declaration exists, URI is empty, or no document is loaded

Remarks

The method searches the keys stored under /PieceInfo /PDF_Declarations and does not inspect XMP metadata

Example

if PDF.HasPDFDeclaration('https://pdfa.org/declarations#ua2')= 1 then ShowDeclaration;

See also

SetPDFDeclarations, GetPDFDeclarationsCount, GetPDFDeclarationsURI, ClearPDFDeclarations