{"repo":"Setasign/FPDI","free":true,"listed":false,"github":"https://github.com/Setasign/FPDI","clone":"git clone https://github.com/Setasign/FPDI.git","description":"FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates in FPDF.","language":"PHP","stars":1248,"topics":["php","pdf","fpdf","fpdi"],"license":"MIT","category":"media-processing","readme_excerpt":"FPDI - Free PDF Document Importer ================================= :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. 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 the 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: - Namespaced code - Clean and up-to-date code base and style - PSR-4 compatible autoloading - Performance improvements by up to 100% - Less memory consumption - Native support for reading PDFs from strings or stream-resources - Support for documents with \"invalid\" d","default_branch":null,"files":null,"tree":[],"storefront":"/r/Setasign","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Setasign/FPDI/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}