PHP Classes

PHP Free PDF Library: Generate PDF documents programatically

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 213 All time: 8,335 This week: 80Up
Version License PHP version Categories
freepdf 1.0.2Freeware7PHP 5, Printing
Description 

Author

This package can be used to generate PDF documents programatically.

It is based on the FreePDF package originally written by Olivier Plathey.

This version of the package is compliant with the coding style defined by the PSR-12 and takes advantage of the PHP 7.4 features.

Picture of John Conde
  Performance   Level  
Name: John Conde <contact>
Classes: 6 packages by
Country: United States United States
Age: 51
All time rank: 2395327 in United States United States
Week rank: 195 Up20 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

Documentation

FreePDF (freepdf)

FreePDF is a fork of FPDF by Olivier Plathey and is available at fpdf.org. It has been refactored to take advantage of features available in PHP 7.4 and later as well as PSR-12 compliant. It also makes the PDF functionality available via Composer and other can contribute via forking and pull requests.

Future plans include creating a PDFlib API compatible replacement.

Requirements

  • PHP 7.4+
  • mbstring.func_overload must be disabled

Installation

You can include the FreePDF.php file directly by requiring the FreePDF.php file into your code:

require('/path/to/src/FreePDF/FreePDF.php');

$pdf = new \FreePDF\FreePDF();

Usage

The fpdf website has tutorials and documentation for using this library as the API has not changed.


  Files folder image Files (43)  
File Role Description
Files folder image.idea (1 file)
Files folder imagesrc (1 directory)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file CHANGELOG Data Auxiliary data
Accessible without login Plain text file CONTRIBUTING.md Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file SECURITY.md Data Auxiliary data

  Files folder image Files (43)  /  .idea  
File Role Description
  Accessible without login Plain text file php.xml Data Auxiliary data

  Files folder image Files (43)  /  src  
File Role Description
Files folder imageFreePDF (2 files, 2 directories)

  Files folder image Files (43)  /  src  /  FreePDF  
File Role Description
Files folder imagefont (14 files)
Files folder imagemakefont (21 files)
  Plain text file FreePDF.php Class Class source
  Plain text file TTFParser.php Class Class source

  Files folder image Files (43)  /  src  /  FreePDF  /  font  
File Role Description
  Accessible without login Plain text file courier.php Aux. Auxiliary script
  Accessible without login Plain text file courierb.php Aux. Auxiliary script
  Accessible without login Plain text file courierbi.php Aux. Auxiliary script
  Accessible without login Plain text file courieri.php Aux. Auxiliary script
  Accessible without login Plain text file helvetica.php Aux. Auxiliary script
  Accessible without login Plain text file helveticab.php Aux. Auxiliary script
  Accessible without login Plain text file helveticabi.php Aux. Auxiliary script
  Accessible without login Plain text file helveticai.php Aux. Auxiliary script
  Accessible without login Plain text file symbol.php Aux. Auxiliary script
  Accessible without login Plain text file times.php Aux. Auxiliary script
  Accessible without login Plain text file timesb.php Aux. Auxiliary script
  Accessible without login Plain text file timesbi.php Aux. Auxiliary script
  Accessible without login Plain text file timesi.php Aux. Auxiliary script
  Accessible without login Plain text file zapfdingbats.php Aux. Auxiliary script

  Files folder image Files (43)  /  src  /  FreePDF  /  makefont  
File Role Description
  Accessible without login Plain text file cp1250.map Data Auxiliary data
  Accessible without login Plain text file cp1251.map Data Auxiliary data
  Accessible without login Plain text file cp1252.map Data Auxiliary data
  Accessible without login Plain text file cp1253.map Data Auxiliary data
  Accessible without login Plain text file cp1254.map Data Auxiliary data
  Accessible without login Plain text file cp1255.map Data Auxiliary data
  Accessible without login Plain text file cp1257.map Data Auxiliary data
  Accessible without login Plain text file cp1258.map Data Auxiliary data
  Accessible without login Plain text file cp874.map Data Auxiliary data
  Accessible without login Plain text file iso-8859-1.map Data Auxiliary data
  Accessible without login Plain text file iso-8859-11.map Data Auxiliary data
  Accessible without login Plain text file iso-8859-15.map Data Auxiliary data
  Accessible without login Plain text file iso-8859-16.map Data Auxiliary data
  Accessible without login Plain text file iso-8859-2.map Data Auxiliary data
  Accessible without login Plain text file iso-8859-4.map Data Auxiliary data
  Accessible without login Plain text file iso-8859-5.map Data Auxiliary data
  Accessible without login Plain text file iso-8859-7.map Data Auxiliary data
  Accessible without login Plain text file iso-8859-9.map Data Auxiliary data
  Accessible without login Plain text file koi8-r.map Data Auxiliary data
  Accessible without login Plain text file koi8-u.map Data Auxiliary data
  Accessible without login Plain text file makefont.php Example Example script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:213
This week:0
All time:8,335
This week:80Up