emscherland / fpdf
A wrapper/clone for the fpdf-Library for use with composer with some enhancements
v3.2.2
2024-09-02 14:30 UTC
Requires
- php: ^8.3
- ext-gd: *
- ext-zlib: *
Requires (Dev)
- phpunit/phpunit: ^11.3
README
FPDF
This repository is a wrapper (with small enhancements) around the popular FPDF library. See FPDF homepage for more information about the usage.
It also includes the class fpdfprotection that extends fpdf and sets some basic protection for PDF-files.
Installation using Composer
$ composer require emscherland/fpdf
Usage (fpdf without protection)
In your php file where you want to use the class:
$pdf = new \Emscherland\Fpdf\Fpdf();
For the usage please look at the FPDF documentation.
Usage (fpdf with protection)
In your php file where you want to use the class:
$pdf = new \Emscherland\Fpdf\FpdfProtection();
For the usage please look at the FPDF documentation.
To set password and protection level (with example data):
$permission=array('print', 'modify', 'copy', 'annot-forms'); $user_pass='geheim'; $owner_pass='strenggeheim'; $pdf->SetProtection($permission,$user_pass,$owner_pass);
Please choose your own passwords. :-)
License FPDF
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software to use, copy, modify, distribute, sublicense, and/or sell
copies of the software, and to permit persons to whom the software is furnished
to do so.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.
License fpdfprotection
You may use and modify this software as you wish as stated in original FPDF package.