THPDFSignaturePermissionInfo Record

Structural DocMDP, FieldMDP and usage rights policy dictionaries held in a signed PDF

Declaration

THPDFSignaturePermissionInfo= record
  TransformMethods: THPDFSignatureTransformMethods;
  TransformReferenceCount: Integer;
  HasDocMDP: boolean;
  DocMDPPermission: THPDFDocMDPPermission;
  HasFieldLock: boolean;
  HasFieldMDP: boolean;
  FieldLockAction: THPDFFieldLockAction;
  FieldNames: THPDFAnsiStringArray;
  HasUR: boolean;
  UsageRights: THPDFUsageRights;
  UsageRightsPermissionSource: THPDFUsageRightsPermissionSource;
  CatalogUsageRightsMatches: boolean;
  UsageRightsRestrictAll: boolean;
  UsageRightsMessage: AnsiString;
  HasIdentity: boolean;
  IdentityObjectNumbers: THPDFIntegerArray;
  UnknownTransformMethods: THPDFAnsiStringArray;
  CatalogPermissionMatches: boolean;
  StructurallyValid: boolean;
  Issue: AnsiString;
end;

Unit

HPDFDoc

Fields

FieldPurpose
TransformMethodsSet of recognised /TransformMethod values found on signature dictionaries
TransformReferenceCountHow many transform parameter references were inspected
HasDocMDPTrue where a DocMDP transform with a permission dictionary exists
DocMDPPermissionDocMDP permission level declared by the signing signature, 1 through 3
HasFieldLockTrue where a FieldLock transform parameter dictionary is present
HasFieldMDPTrue where a FieldMDP transform is present on any signature
FieldLockActionLock action (All / Include / Exclude) held by the field lock dictionary
FieldNamesField names that the lock or FieldMDP policy lists
HasURTrue where a usage rights signature exists
UsageRightsUsage rights that the UR signature enables
UsageRightsPermissionSourceWhich revision's UR signature provides the effective rights
CatalogUsageRightsMatchesTrue where the Catalog /Perms entry tallies with the UR signature
UsageRightsRestrictAllTrue where the UR policy restricts every documented capability
UsageRightsMessageDetail text on the usage rights evaluation
HasIdentityTrue where an Identity transform, of the document timestamp style, is present
IdentityObjectNumbersObject numbers of the signatures that carry the Identity transform
UnknownTransformMethodsTransform method names outside the recognised set; a hint at tampering
CatalogPermissionMatchesTrue where the Catalog permission bits tally with the DocMDP policy
StructurallyValidTrue where every policy dictionary parsed without structural trouble
IssueFirst structural problem found; empty whilst StructurallyValid holds

Usage notes

Related APIs