How to password protect pdf in PHP [duplicate]
Possible Duplicate: How to password protect an uploaded pdf in PHP I have a web app where users can upload pdf documents. Is there a php library that I can use to password protect the pdf file? I need the library to preserve all aspects of the original pdf (i.e. size, fonts, resolution, etc). Favourite Onwuemene Download the library used: Protect PDF in PHP <?php function pdfEncrypt ($origFile, $password, $destFile){ //include the FPDI protection http://www.setasign.de/products/pdf-php-solutions/fpdi-protection-128/ require_once('fpdi/FPDI_Protection.php'); $pdf =& new FPDI_Protection(); //