I have a user uploading a PDF to my server, is it possible to adjust the PDF restrictions via PHP to not allow printing, copying, etc?
Many thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This will meet your needs.
http://www.idsecuritysuite.com/blog/password-protect-a-pdf-document-in-php
http://www.setasign.de/products/pdf-php-solutions/fpdi-protection-128/downloads/
Alternatively you could adjust the permissions of the PDF after upload:
However this will mean users cannot read the file, which i don’t believe is the desired effect your after.