Skip to content
dragonofmercy

php-pdf

A PHP 8.4 library for generating PDF files.

Language: PHPVersion: v1.12.5License: MITstars: 53

Features

  1. Pure PHP, with no runtime dependencies beyond mbstring, openssl and zlib
  2. Text, custom fonts, cells, tables, images, SVG, barcodes, QR codes and Markdown
  3. Interactive forms and digital signatures
  4. PDF/A archival and tagged PDF/UA-1 output
  5. Reads, modifies and fills existing PDFs, including encrypted ones

About

php-pdf is a PHP 8.4 library for generating PDF documents. It is written in pure PHP and only needs the standard mbstring, openssl and zlib extensions, so there is no external binary to install.

It creates documents from scratch, with pages in 19 standard sizes or custom ones, graphics, text, tables, images, vector SVG, barcodes and Markdown. It also handles right-to-left text, AES-256 password protection and PKCS#7 digital signatures.

It can also read existing PDFs, import a page as a template for letterheads or watermarks, edit metadata and pages, and fill AcroForm fields. Version 1.0 is stable and follows semantic versioning. Usage guides live in the project wiki on GitHub.

Read the README

Installation instructions

composer require dragonofmercy/phppdf