qmetrics.net

mPDF

PHP library generating PDFs from UTF-8 HTML

mPDF screenshot

mPDF is a PHP package that turns UTF-8 HTML into PDF files. You install it via Composer and call it from your PHP application.

Overview

mPDF generates PDF documents from UTF-8 encoded HTML. It extends ideas from FPDF and HTML2FPDF with added layout and language support, including CJK text when the right extensions are available.

You integrate it as a PHP dependency, construct a document object with optional configuration, write HTML, and output PDF bytes to the browser or a file. Configuration covers temp directories, fonts, and many layout directives passed through the constructor.

The project documents CSS support as dated compared with newer non-PHP tools; templates are often tuned specifically for mPDF. It supports features such as color handling, barcodes, headers and footers, page numbers, and tables of contents relative to simpler HTML-to-PDF approaches.

Running under nginx with php-fpm or Apache is recommended instead of PHP's built-in single-threaded development server when fetching external HTTP resources. User-supplied HTML should be validated above the library, as mPDF is not meant to accept untrusted markup from end users.

Key features

  • HTML and CSS to PDF conversion
  • UTF-8 and CJK text support
  • Headers, footers, and page numbers
  • Barcode generation
  • Table of contents support
  • Configurable temp and font paths
  • Composer package distribution
  • Inline browser PDF output

Use cases

  • Server-side invoice or report PDFs
  • Multilingual PDF from HTML templates
  • On-the-fly PDF in PHP web apps
  • Print-oriented layouts from CMS content
  • Documents needing barcodes or TOCs

Tags

Similar software

pdfcpu

Go PDF processing library and command-line tool

pdfcpu validates, merges, splits, encrypts, and transforms PDFs through a Go API and a command-line interface with broad PDF operations.

  • Validate and optimize PDFs
  • Merge, split, and trim
  • Encrypt, decrypt, and sign
GoCLIDetails →
★ 8.9k⟳ 1 month agoApache-2.0

QPDF

Content-preserving PDF transformation CLI and library

QPDF is a command-line tool and C++ library for structural PDF work: linearization, encryption, split/merge, and inspection. It does not render pages or extract text.

  • PDF linearization and encryption
  • Split and merge PDF files
  • Structural PDF inspection
C++Linux, macOS, Windows, CLIDetails →
★ 5.6k⟳ 7 days agoApache-2.0

POI Tl

Apache POI-based Word template engine for Java

poi-tl (poi template language) is a free Java library that renders Microsoft Word templates with {{tags}} and a data model to produce docx output.

  • Double-brace Word templates
  • Tables images and charts
  • Condition and loop tags
JavaDetails →
★ 5.2k⟳ 1 month agoApache-2.0

iText for Java

Java PDF creation and manipulation SDK

iText Core lets Java projects create, adapt, inspect, and maintain PDF documents. It covers layout, forms, signatures, PDF/A, PDF/UA, and related document tasks.

  • PDF creation and layout engine
  • Merge and content manipulation
  • Digital PDF signing
JavaDetails →
★ 2.3k⟳ yesterdayAGPL-3.0

ECC

Open-source agent engineering toolkit for coding harnesses

ECC adds planning, verification, review, memory, skills, and security scanning to coding agents such as Claude Code, Codex, and Cursor. It installs as plugins, packages, and managed adapters across multiple harnesses.

  • Planning and review agents
  • Skills and command library
  • Runtime hooks and memory
JavaScriptCLIDetails →
★ 316.2k⟳ 14 days agoMIT

React

JavaScript library for web and native user interfaces

React helps developers build interfaces from reusable components that manage their own state. Views update declaratively when underlying data changes.

  • Declarative UI rendering
  • Encapsulated stateful components
  • JSX markup beside JavaScript logic
JavaScriptWebDetails →
★ 252.7k⟳ todayMIT