GetPDFDeclarationsRole
Compliance
Description
Returns the role stored for one machine-readable PDF Declarations conformance claim
Syntax
Delphi
Function GetPDFDeclarationsRole(Index: Integer): WideString;Parameters
| Index | Zero-based index of the declaration to read |
|---|
Return values
| S | Claiming role, also used when the stored entry omits /role |
|---|---|
| P | Policy role |
| A | Assertion role |
| Empty string | No document is loaded, Index is negative or out of range, or the declarations cannot be read |
Remarks
Use GetPDFDeclarationsCount to establish the valid range from 0 through count minus 1
Example
Role:= PDF.GetPDFDeclarationsRole(0);See also
GetPDFDeclarationsCount, GetPDFDeclarationsURI, GetPDFDeclarationsVersion, SetPDFDeclarations