Download the PHP package setasign/fpdi-protection without Composer
On this page you can find all versions of the php package setasign/fpdi-protection. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download setasign/fpdi-protection
More information about setasign/fpdi-protection
Files in setasign/fpdi-protection
Package fpdi-protection
Short Description A FPDI compatible version of the FPDF_Protection script.
License MIT
Homepage https://github.com/Setasign/fpdi-protection
Informations about the package fpdi-protection
FpdiProtection
A FPDI 2 compatible and enhanced version of the FPDF_Protection script.
This version requires and uses OpenSSL functions instead of Mcrypt or a user land implementation of RC4.
RC4-40bits and RC4-128bits encryption are supported.
Installation with Composer
Manual Installation
If you do not use composer, just require the autoload.php in the /src folder:
If you have a PSR-4 autoloader implemented, just register the src path as follows:
Don't forget to install FPDI and FPDF, too!
Example
This class offers one public method, which allows you to set the protection of the resulting PDF document. All other code is identically to FPDI or FPDF.
If you pass null or an empty string as the owner password the method will create a random owner password. The return value of this method is the owner password.
All versions of fpdi-protection with dependencies
ext-openssl Version *
setasign/fpdi Version ^2.6.3
setasign/fpdf Version ^1.8.6