php,pdf,password-protection,copy-protection
You can't achieve what you want with PDF. There are two ways to encrypt a PDF document: Using passwords. You can define two passwords: a user password and an owner password. A document that is encrypted with an owner password can be opened by every one who receives the document....
There is no official way to copy-protect your code at the moment, sorry - if you want to do this, you'll have to invent your own way (or just not worry about it)