SetPDFDeclarations

Compliance

Description

Writes machine-readable PDF Declarations conformance claims into the document catalog

Syntax

Delphi

Function SetPDFDeclarations(Const URIs, Roles, Versions: WideString): Integer;

Return values

0No document is loaded or the URI list is empty
NNumber of declaration entries written

Remarks

All three parameters are semicolon-separated lists. Roles default to S (claiming) when the role list is shorter; versions default to empty. Declarations are stored under /PieceInfo /PDF_Declarations so automated processors can discover conformance claims without parsing XMP. Call ClearPDFDeclarations to remove them again.

Example

PDF.SetPDFDeclarations("https://pdfa.org/declarations#ua2", "S", "2024");

See also

AuditDocumentSpace, AnalyseFile