mPDF is a PHP library that generates PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files ‘on-the-fly’ from his website, handling different languages. It is slower than the original scripts e.g. HTML2FPDF and produces larger files when using Unicode fonts, but support for CSS styles etc. and has been much enhanced. Supports almost all languages including RTL (Arabic and Hebrew), and CJK (Chinese-Japanese-Korean). Nested block-level elements (e.g. P, DIV) including margins, borders, padding, line height, background colors, etc. Right-to-left languages are supported, with automatic detection of RTL characters within a document. Transposes tables, lists, text justification, and table cell alignment, as well as a full-text reversal for RTL characters. Automatically detects non-RTL characters and displays these in the original order.

Features

  • Accepts UTF-8 encoded HTML
  • CSS stylesheets
  • Word spacing and character spacing for justification
  • Supports (partial) for floating and fixed-position block-elements
  • Page layout and orientation
  • Text-justification and hyphenation
  • Page numbering

Project Samples

Project Activity

See All Activity >

Categories

Libraries, PDF

License

GNU General Public License version 3.0 (GPLv3)

Follow mPDF

mPDF Web Site

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of mPDF!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Libraries, PHP PDF Software

Registered

2022-06-17