Is it possible to generate non-editable pdf with domPDF?
Best Regards,
Marek
Calling [the setEncryption()] function sets up the document to be encrypted, this is the only way to mark the document so that they user cannot use cut and paste, or printing.
Using the call without options, defaults to preventing the user from cut & paste or printing. There are no passwords require to open the document.
Setting either off the passwords will mean that the user will have to enter a password to open the document. If the owner password is entered when the document is opened then the user will be able to print etc. If the two passwords are set to be the same (or the owner password is left blank) then there is no owner password, and the document cannot be opened in the accesible mode.
The pc array can be used to allow specific actions. The following example, sets an owner password, a user password, and allows printing and cut & paste.
$pdf->setEncryption('trees','frogs',array('copy','print'));