PHP code example of setasign / fpdi-protection
1. Go to this page and download the library: Download setasign/fpdi-protection 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/ */
setasign / fpdi-protection example snippets
$loader = new \Example\Psr4AutoloaderClass;
$loader->register();
$loader->addNamespace('setasign\FpdiProtection', 'path/to/src/');
use setasign\FpdiProtection\FpdiProtection;
// setup the autoload function
ction::PERM_PRINT | FpdiProtection::PERM_COPY,
'the user password',
'the owner password'
);
// ...