Download and install setasign/fpdi without Composer

Please rate this library. Is it a good library?
Rate from 1 - 5
Rated 2.00 based on 3 reviews

All versions of fpdi with dependencies

Requires php Version ^5.6 || ^7.0
ext-zlib Version *

Informations about the package fpdi

FPDI - Free PDF Document Importer

Latest Stable Version Total Downloads Latest Unstable Version License Build Status

:heavy_exclamation_mark: This document refers to FPDI 2. Version 1 is deprecated and development is discontinued. :heavy_exclamation_mark:

FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates in FPDF, which was developed by Olivier Plathey. Apart from a copy of FPDF, FPDI does not require any special PHP extensions.

FPDI can also be used as an extension for TCPDF or tFPDF, too.

Installation with Composer

Because FPDI can be used with FPDF, TCPDF or tFPDF we didn't added a fixed dependency in the main composer.json file but we added metadata packages for FPDF, TCPDF and tFPDF.

Evaluate Dependencies Automatically

For FPDF add following package to your composer.json:

For TCPDF add following package to your composer.json:

For tFPDF add following package to your composer.json:

Manual Dependencies

If you don't want to use the metadata packages, it is up to you to add the dependencies to your composer.json file.

To use FPDI with FPDF include following in your composer.json file:

If you want to use TCPDF, your have to update your composer.json respectively to:

If you want to use tFPDF, your have to update your composer.json respectively to:

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:

Changes to Version 1

Version 2 is a complete rewrite from scratch of FPDI which comes with:

We tried to keep the main methods and logical workflow the same as in version 1 but please notice that there were incompatible changes which you should consider when updating to version 2:

Example and Documentation

A simple example, that imports a single page and places this onto a new created page:

A full end-user documentation and API reference is available here.

The package setasign/fpdi contains the following files

Loading the files please wait ....