PHPackages                             dfware/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. dfware/html2pdf

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

dfware/html2pdf
===============

Provides support for HTML to PDF and PHP to PDF conversion

1.0.0(2y ago)092BSD-3-ClausePHP

Since Sep 27Pushed 2y agoCompare

[ Source](https://github.com/dfware/html2pdf)[ Packagist](https://packagist.org/packages/dfware/html2pdf)[ GitHub Sponsors](https://github.com/klimov-paul)[ Patreon](https://www.patreon.com/klimov_paul)[ RSS](/packages/dfware-html2pdf/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

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

[](#installation)

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

Either run

```
composer require dfware/html2pdf

```

or add

```
"dfware/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:

```
