PDFium Delphi Component Docs

UserGrantedPermissions property

Component: TPdf  ·  Unit: PDFium
The permissions a user-password reader would receive, as a Pascal set

Syntax

property UserGrantedPermissions: TPdfPermissions; // read-only

Description

Decodes UserPermissions into a set of TPdfPermission values, in the same way GrantedPermissions decodes Permissions

The two differ when the document was opened with the owner password: the owner sees full rights, whilst this reports the reduced set a reader holding only the user password would get

Useful when an application opens a document as owner but wants to preview or honour the restrictions ordinary readers face

See Also

UserHasPermission, UserPermissions, GrantedPermissions, Password