PHP code example of indzz / pdfprotect
1. Go to this page and download the library: Download indzz/pdfprotect library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
indzz / pdfprotect example snippets
use INDZZ\PdfProtector\PdfProtector;
PdfProtector::create('fpdi')
->source(__DIR__.'/input/1.pdf')
->protect('userPw', 'ownerPw')
->output();