function UserHasPermission(Permission: TPdfPermission): Boolean;
| Permission | TPdfPermission. One of permPrint, permModify, permCopy, permAnnotate, permFillForms, permAccessibility, permAssemble, permPrintHighQuality |
| Result | Boolean. True when a user-password reader would be granted it |
The user-level counterpart of HasPermission, reading from UserGrantedPermissions
On a document opened with the user password, or on an unencrypted one, both methods agree. They diverge only when the owner password was supplied
This is the check to use when an application wants to behave the way an ordinary reader would, regardless of the password it happened to open the file with