Download the PHP package setasign/fpdi without Composer

On this page you can find all versions of the php package setasign/fpdi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

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

All versions of fpdi with dependencies

Informations about the package fpdi

FPDI - Free PDF Document Importer

Latest Stable Version Total Downloads Latest Unstable Version License

: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 haven't added a fixed dependency in the main composer.json file. You need to add the dependency to the PDF generation library of your choice yourself.

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

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

If you want to use tFPDF, you have to update your composer.json 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.


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

The package setasign/fpdi contains the following files

Loading the files please wait ....