1

Hi,
I want to protect a document and let anyone only to print.
How to?

Thanks

2

by using the SetProtection, like in exemple 7 :

$html2pdf->pdf->SetProtection(array('print'), 'spipu');

		/**
		* Function to set permissions as well as user and owner passwords
		*
		* - permissions is an array with values taken from the following list:
		*	copy, print, modify, annot-forms
		*	If a value is present it means that the permission is granted
		* - If a user password is set, user will be prompted before document is opened
		* - If an owner password is set, document can be opened in privilege mode with no
		*	restriction if that password is entered
		*/
		function SetProtection($permissions=array(),$user_pass='',$owner_pass=null)

Ancien pseudo : lolo

3

Thanks for reply.
I jump directly to /res smile
My bad.

Works fine.

If you want to only copy protect without asking for password, use
$html2pdf->pdf->SetProtection(array('print'), '');