A wrapper/clone for the fpdf-Library for use with composer with some enhancements

v3.1.2 2021-10-02 13:08 UTC

This package is auto-updated.

Last update: 2024-04-29 04:15:34 UTC


README

Build Status Pipeline Status Latest Stable Version License PHP Version Require

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.