

You are free to download and use this class or customise it to fit your needs. To use the full PDFlib library you must purchase a rather expensive license.Īn alternative way of generating PDF files with PHP is using FPDF, a free PHP class containing a number of functions for creating and manipulating PDFs.

A free version called PDFlib Lite is available for personal use, but is limited in functionality. Although extensive, this library is not free for commercial use.

The PHP API contains a number of functions for handling PDF files designed to be used with the PDFlib. FPDF is a free PHP class containing a number of functions that let you create and manipulate PDFs. PHP allows you to generate PDF files dynamically, which can be useful for a variety of tasks. This tutorial provides an overview of the FPDF functionality and two examples using the PHP object-oriented approach to get you started with building your own PDFs.
