property Permissions: LongWord; // read only
property GrantedPermissions: TPdfPermissions; // read only
function HasPermission(Permission: TPdfPermission): Boolean;
Permissions returns the owner-password permission mask decoded by PDFium from the /Encrypt dictionary
GrantedPermissions maps the standard PDF permission bits to a TPdfPermissions set containing permPrint, permModify, permCopy, permAnnotate, permFillForms, permAccessibility, permAssemble, and permPrintHighQuality
HasPermission tests one of those values directly
UserGrantedPermissions and UserHasPermission when the effective user-password permission set is required
if Pdf1.HasPermission(permCopy) then
EnableCopyCommands;