GetPDFDeclarationsVersion

Compliance

Description

Returns the optional version stored for one machine-readable PDF Declarations conformance claim

Syntax

Delphi

Function GetPDFDeclarationsVersion(Index: Integer): WideString;

Parameters

IndexZero-based index of the declaration to read

Return values

VersionThe stored declaration version at Index
Empty stringThe declaration has no version, no document is loaded, Index is negative or out of range, or the declarations cannot be read

Remarks

An empty result is valid for a declaration without a /version entry, so use GetPDFDeclarationsCount to distinguish a valid index from an out-of-range index

Example

Version:= PDF.GetPDFDeclarationsVersion(0);

See also

GetPDFDeclarationsCount, GetPDFDeclarationsURI, GetPDFDeclarationsRole, SetPDFDeclarations