SetProtection([array permissions [, string user_pass [, string owner_pass]]])
permissions
: the set of permissions. Empty by default (only viewing is allowed).user_pass
: user password. Empty by default.owner_pass
: owner password. If not specified, a random value is used.copy
: copy text and images to the clipboardprint
: print the documentmodify
: modify it (except for annotations and forms)annot-forms
: add annotations and forms- Protecting a document requires to encrypt it. The Mcrypt extension is used if available. If not, the encryption is done in PHP, which can increase the processing time significantly (especially if the document contains images or fonts).
- Some PDF readers like Firefox's built-in viewer ignore the protection settings.