2017 © Pedro Peláez
 

library mpdf

A PHP class to generate PDF files from HTML with Unicode/UTF-8 and CJK support. This is a fork of the official mPDF library.

image

kartik-v/mpdf

A PHP class to generate PDF files from HTML with Unicode/UTF-8 and CJK support. This is a fork of the official mPDF library.

  • Wednesday, December 21, 2016
  • by kartik-v
  • Repository
  • 2 Watchers
  • 28 Stars
  • 201,423 Installations
  • PHP
  • 7 Dependents
  • 0 Suggesters
  • 35 Forks
  • 10 Open issues
  • 5 Versions
  • 2 % Grown

The README.md

mpdf

Latest Stable Version License Total Downloads Monthly Downloads Daily Downloads, (*1)


Use the mpdf/mpdf repo instead

Effective 08-Apr-2016, I am redirecting and encouraging folks to use the above repo - to ensure a single codebase for mpdf management in future. This repo was initially created since there was no other package having the 6.x release that could be installed via composer. For folks coming over from Yii, note that the yii2-mpdf extension has been modified to use the mpdf/mpdf repo, (*2)


This is a fork of the mPDF library. mPDF is a PHP class which generates PDF files from UTF-8 encoded HTML. It is based on FPDF and HTML2FPDF, with a number of enhancements. It is slower than the original scripts e.g. HTML2FPDF and produces larger files when using Unicode fonts, but support for CSS styles etc. has been much enhanced., (*3)

This fork adds composer and packagist support., (*4)

Why this repo?

I needed this for building many of my dependent PHP based projects that use this wonderful PDF library. Managing package dependencies via a central repository was important for folks like me. I use composer to manage package dependencies via packages on packagist.org. This repository allows access to some specific features and needs:, (*5)

  1. Adds ability to update library and manage dependencies via composer in your PHP based applications
  2. Uses the latest development version (v6.0beta) of the mPDF library. I needed the latest development version via composer, which was not found elsewhere. mPDF 6.0 can utilise OpenType layout tables to display complex scripts. It will be of most interest to those wishing to use Arabic or Indic scripts (as well as Khmer, Lao, Myanmar etc.). It will also improve the display of Thai, Vietnamese and Hebrew.
  3. This beta release (v6.0) contains fonts (open source) to cover almost every imaginable script / language. It also includes additional fonts for Chinese, Japanese, and Korean.

Installation

The preferred way to install this extension is through composer., (*6)

Either run, (*7)

$ php composer.phar require mpdf/mpdf "@dev"

or add, (*8)

"mpdf/mpdf": "@dev"

to the require section of your composer.json file., (*9)

Refer the readme instructions for other details on setting up the extension., (*10)

Usage

PHP 5.4 and later can use namespaces to access. Refer the documentation manual or the upstream mpdf site for further details and understanding of the library., (*11)

use \mPDF;

$pdf = new mPDF();

The Versions

21/12 2016

dev-master

9999999-dev http://www.mpdf1.com/mpdf/index.php

A PHP class to generate PDF files from HTML with Unicode/UTF-8 and CJK support. This is a fork of the official mPDF library.

  Sources   Download

GPL-1.0+

The Requires

  • php >=4.3.10
  • ext-mbstring *

 

by Ian N Back

php utf-8 pdf

05/05 2015

v1.0.2

1.0.2.0 http://www.mpdf1.com/mpdf/index.php

A PHP class to generate PDF files from HTML with Unicode/UTF-8 and CJK support. This is a fork of the official mPDF library.

  Sources   Download

GPL-1.0+

The Requires

  • php >=4.3.10
  • ext-mbstring *

 

by Ian N Back

php utf-8 pdf

18/02 2015

v1.0.1

1.0.1.0 http://www.mpdf1.com/mpdf/index.php

A PHP class to generate PDF files from HTML with Unicode/UTF-8 and CJK support. This is a fork of the official mPDF library.

  Sources   Download

GPL-1.0+

The Requires

  • php >=4.3.10
  • ext-mbstring *

 

by Ian N Back

php utf-8 pdf

08/11 2014

1.0.0.x-dev

1.0.0.9999999-dev http://www.mpdf1.com/mpdf/index.php

A PHP class to generate PDF files from HTML with Unicode/UTF-8 and CJK support. This is a fork of the official mPDF library.

  Sources   Download

GPL-1.0+

The Requires

  • php >=4.3.10
  • ext-mbstring *

 

by Ian N Back

php utf-8 pdf

08/11 2014

v1.0.0

1.0.0.0 http://www.mpdf1.com/mpdf/index.php

A PHP class to generate PDF files from HTML with Unicode/UTF-8 and CJK support. This is a fork of the official mPDF library.

  Sources   Download

GPL-1.0+

The Requires

  • php >=4.3.10
  • ext-mbstring *

 

by Ian N Back

php utf-8 pdf