SetProtection( $permissions = array(‘print’, ‘modify’, ‘copy’, ‘annot-forms’, ‘fill-forms’, ‘extract’, ‘assemble’, ‘print-high’), $user_pass = ”, $owner_pass = null, $mode = 0, $pubkeys = null )
Set document protection Remark: the protection against modification is for people who have the full Acrobat product. 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 master password, if different from the user one, can be used to get full access. Note: protecting a document requires to encrypt it, which increases the processing time a lot. This can cause a PHP time-out in some cases, especially if the document contains images or fonts.