PHPackages                             intelogie/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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. intelogie/html2pdf

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

intelogie/html2pdf
==================

Html2pdf' with Composer support. (Fixed composer dependency problem)

095PHP

Since May 3Pushed 10y ago1 watchersCompare

[ Source](https://github.com/INTELOGIE/html2pdf)[ Packagist](https://packagist.org/packages/intelogie/html2pdf)[ RSS](/packages/intelogie-html2pdf/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

HTML2PDF v4.4. - 2015-12-10
===========================

[](#html2pdf-v44---2015-12-10)

License:
--------

[](#license)

```
 This program is distributed under the LGPL License,
 for more information see file _LGPL.txt or
 http://www.gnu.org/licenses/lgpl.html

 Copyright 2008-2015 by Laurent Minguet

```

How to use:
-----------

[](#how-to-use)

- You need at least PHP 5.2
- Look at the examples provided to see how it works.
- It is very important to provide valid HTML 4.01 to the converter, but only what is in the ``
- for borders: it is advised that they are like `solid 1mm #000000`
- for padding, they are applicable only on tags table, th, td, div, li
- A default font can be specified, if the requested font does not exist or if no font is specified:

`$html2pdf->setDefaultFont('Arial');`

- The possibility to protect your PDF is present, CF Example 7.
- Some tests can be enabled (true) or disabled (false):
- setTestIsImage method: test that images must exist
- setTestTdInOnePage method: test that the contents of TDs fit on one page
- setTestIsDeprecated method: test that old properties of specific tags are not used anymore
- A DEBUG mode to know the resources used is present. It is activated by adding the following command just after the contructor (see Example 0): `$htmlpdf->setModeDebug();`
- Some specific tags have been introduced:

    - (CF Exemple 7 &amp; wiki)

        - Determines the orientation, margins left, right, top and bottom, the background image
        - nd the background color of a page, its size and position, the footer.
        - It is also possible to keep the header and footer of the previous pages,
        - through the attribut pageset="old" (see Example 3 &amp; 4 &amp; wiki)
    - &lt;page\_header&gt;&lt;/page\_header&gt; (CF Example 3 &amp; wiki)
    - &lt;page\_footer&gt;&lt;/page\_footer&gt; (CF Example 3 &amp; wiki)
    - (CF wiki)

        - Used to force the display of a section on the same page.
        - If this section does not fit into the rest of the page, a page break is done before.
    - (CF Examples 0 &amp; 9 &amp; wiki)

        - Can insert barcodes in pdfs, CF Examples 0 and 9
        - the possible types of codebar are alls of TCPDF
    - (CF Example 13 &amp; wiki)

        - can insert QRcode 2D barcodes
        - (QR Code is registered trademark of DENSO WAVE INCORPORATED | )
    - (CF Examples 7 &amp; About &amp; wiki)

        - Can insert bookmark in pdfs, CF Example 7 and About.
        - It is also possible to automatically create an index at the end of
        - document (CF Example About &amp; wiki)
    - css property "rotate":

        - Values : 0, 90, 180, 270
        - Works only on div (cf example 8)

Change log:
-----------

[](#change-log)

See on this page:

Help &amp; Support:
-------------------

[](#help--support)

For questions and bug reports, thank you to use only the support link below. I will answer to your questions only on it...

Informations:
-------------

[](#informations)

- Programmer: Spipu
- Web Site :
- Wiki :
- Support :

Thanks:
-------

[](#thanks)

- Olivier Plathey: for have made FPDF
- Nicola Asuni: for the changes he has agreed to make to TCPDF
- yAronet: for hosting support forum
- Everyone who helped me to develop this library and to bring the texts

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8cd960536c07e255b2e6f7e55c03c6d09274b215ccceaccc38926ffe03e098a7?d=identicon)[bgauthier](/maintainers/bgauthier)

---

Top Contributors

[![spipu](https://avatars.githubusercontent.com/u/10595905?v=4)](https://github.com/spipu "spipu (13 commits)")[![fagundes](https://avatars.githubusercontent.com/u/169477?v=4)](https://github.com/fagundes "fagundes (4 commits)")[![bgauthier](https://avatars.githubusercontent.com/u/1789355?v=4)](https://github.com/bgauthier "bgauthier (3 commits)")[![94noni](https://avatars.githubusercontent.com/u/1358361?v=4)](https://github.com/94noni "94noni (1 commits)")[![ixmon](https://avatars.githubusercontent.com/u/6829763?v=4)](https://github.com/ixmon "ixmon (1 commits)")[![juchi](https://avatars.githubusercontent.com/u/3333098?v=4)](https://github.com/juchi "juchi (1 commits)")[![locojohn](https://avatars.githubusercontent.com/u/881947?v=4)](https://github.com/locojohn "locojohn (1 commits)")[![Grummfy](https://avatars.githubusercontent.com/u/668804?v=4)](https://github.com/Grummfy "Grummfy (1 commits)")[![acoquoin](https://avatars.githubusercontent.com/u/990484?v=4)](https://github.com/acoquoin "acoquoin (1 commits)")[![goulvench](https://avatars.githubusercontent.com/u/419086?v=4)](https://github.com/goulvench "goulvench (1 commits)")

### Embed Badge

![Health badge](/badges/intelogie-html2pdf/health.svg)

```
[![Health](https://phpackages.com/badges/intelogie-html2pdf/health.svg)](https://phpackages.com/packages/intelogie-html2pdf)
```

###  Alternatives

[tarfin-labs/easy-pdf

Makes pdf processing easy.

1719.9k](/packages/tarfin-labs-easy-pdf)[akeneo-labs/excel-connector-bundle

Akeneo PIM Excel connector bundle

166.4k](/packages/akeneo-labs-excel-connector-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
