class FPDI_Protection extends FPDI {
void SetProtection ( [array $permissions=array()[, string $user_pass=''[, string $owner_pass='']]] ) }
Set the permissions, owner- and userpassword.
If you don't set any password, the document will open as usual. If you set a user password, the PDF viewer will ask for it before displaying the document. The owner password, if different from the user one, can be used to get full access.
Remark: the protection against modification is for people who have the full Acrobat product.
The set of permissions. Empty by default (only viewing is allowed).
The permission array is composed of values taken from the following ones:
The user is allowed to print the document. If "degraded-print" is set, the user is not allowed to print in highest quality.
modify
The user is allowed to modify the contents of the document by operations other than those controlled by "annot-forms".
copy
The user is allowed to copy or otherwise extract text and graphics from the document, including extracting text and graphics (in support of accessibility to disabled users or for other purposes).
annot-forms
The user is allowed to add or modify text annotations, fill in interactive form fields, and, if "modify" is also set, create or modify interactive form fields (including signature fields).
The user password. Empty by default.
The owner password. If not specified, a random value is used.