Pdf Encrypt With Password Script

Hi,
As part of selling an ebook online, I’d like to password protect the PDF file with part of the customers details.
e.g.
if Bob Smith buys my ebook online, I would like to password protect the PDF with bobsmith as the password (in lower case). The file would be created from the original which will live on the server and then a copy of the encrypted PDF moved to a path on the server for the customer to download. And a link to the new PDF file needs to be exposed, so I can integrate it into the auto email to the customer for them to download.

So I just want the code to do the PDF encryption and output the link to the new file, so I can grab it and use it in the auto email.

Leave a Reply

Your email address will not be published. Required fields are marked *