PHPackages                             yii2tech/html2pdf - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. yii2tech/html2pdf

AbandonedArchivedYii2-extension[Templating &amp; Views](/categories/templating)

yii2tech/html2pdf
=================

Provides support for HTML to PDF and PHP to PDF conversion

1.0.7(6y ago)75555.0k↓17.9%26BSD-3-ClausePHP

Since May 19Pushed 6y ago8 watchersCompare

[ Source](https://github.com/yii2tech/html2pdf)[ Packagist](https://packagist.org/packages/yii2tech/html2pdf)[ RSS](/packages/yii2tech-html2pdf/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (9)Used By (0)

 [ ![](https://avatars2.githubusercontent.com/u/12951949) ](https://github.com/yii2tech)

HTML to PDF conversion extension for Yii2
=========================================

[](#html-to-pdf-conversion-extension-for-yii2)

This extension provides basic support for HTML to PDF and PHP to PDF conversion.

For license information check the [LICENSE](LICENSE.md)-file.

[![Latest Stable Version](https://camo.githubusercontent.com/a128904db8e1349dfa7e540de82e426dcb1532e8d9b4498dae6b8f72b26537bf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f79696932746563682f68746d6c327064662e737667)](https://packagist.org/packages/yii2tech/html2pdf)[![Total Downloads](https://camo.githubusercontent.com/a4554ce5ca4da5f2ab7e26f57ccc1c3ab878460e5085af7844af4107a46f4745/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f79696932746563682f68746d6c327064662e737667)](https://packagist.org/packages/yii2tech/html2pdf)[![Build Status](https://camo.githubusercontent.com/85b771f622203870d69e7a839e8f47db719d8ab76d34fe3b4ea9f8f7a93240e5/68747470733a2f2f7472617669732d63692e6f72672f79696932746563682f68746d6c327064662e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/yii2tech/html2pdf)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist yii2tech/html2pdf

```

or add

```
"yii2tech/html2pdf": "*"
```

to the require section of your composer.json.

> Note: you'll have to install software for the actual HTML to PDF conversion separately, depending on the particular converter, you would like to use.

Usage
-----

[](#usage)

This extension provides support for HTML to PDF and PHP to PDF conversion. It allows composition of the PDF files from HTML and via rendering PHP templates.

Extension functionality is aggregated into `\yii2tech\html2pdf\Manager` application component. Application configuration example:

```
