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
| URI | Declaration URI to find in the document catalog |
|---|
Return values
| 1 | A declaration entry with URI exists |
|---|---|
| 0 | No 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