PDFium Delphi Component Docs

GrantedPermissions property

Component: TPdf  ·  Unit: PDFium
The document permissions as a Pascal set, decoded from the raw permission bits

Syntax

property GrantedPermissions: TPdfPermissions; // read-only

Description

Decodes the permission bits of the security handler into a set of TPdfPermission values: permPrint, permModify, permCopy, permAnnotate, permFillForms, permAccessibility, permAssemble, permPrintHighQuality

Reading this instead of Permissions removes the bit arithmetic and the ISO 32000-1 Table 22 lookup from calling code: permPrint in Pdf.GrantedPermissions says exactly what it means

An unencrypted document grants everything. For a single check, HasPermission is shorter still

See Also

HasPermission, Permissions, UserGrantedPermissions, SecurityHandlerRevision