PHPackages                             94noni/html2pdf-bundle - 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. 94noni/html2pdf-bundle

ActiveSymfony-bundle[PDF &amp; Document Generation](/categories/documents)

94noni/html2pdf-bundle
======================

Html2pdf for Symfony.

v1.1.1(4y ago)118MITPHPPHP &gt;=7.4

Since Nov 17Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/94noni/NoniHtml2pdfBundle)[ Packagist](https://packagist.org/packages/94noni/html2pdf-bundle)[ Docs](https://github.com/94noni/NoniHtml2pdfBundle)[ RSS](/packages/94noni-html2pdf-bundle/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

Note

Package abandoned.

---

NoniHtml2pdfBundle
==================

[](#nonihtml2pdfbundle)

### Fork of the original

[](#fork-of-the-original)

Difference with latest v0.x is the support of Symfony v6+ and PHP v8+, tagged here as v1.

Used for personal projects to render some PDF.

History
-------

[](#history)

[Html2pdf](https://github.com/spipu/html2pdf) for [Symfony](https://symfony.com) applications.

Please read [FrDeamon/EnseparHtml2pdfBundle#37](https://github.com/FrDeamon/EnseparHtml2pdfBundle/pull/37)

---

How to install?
---------------

[](#how-to-install)

Use [Composer](https://getcomposer.org) to install it:

```
$ composer require 94noni/html2pdf-bundle
```

Enable it in your `config/bundles.php` file:

```
Noni\Html2pdfBundle\NoniHtml2pdfBundle::class => ['all' => true],
```

How to use?
-----------

[](#how-to-use)

In your code:

```
use Noni\Html2pdfBundle\Factory\Html2pdfFactory;

class MyClass
{
    private Html2pdfFactory $html2pdfFactory;

    public function __construct(Html2pdfFactory $html2pdfFactory)
    {
        $this->html2pdfFactory = $html2pdfFactory;
    }
}
```

You can pass every options you would pass to `Html2pdf`, for instance:

```
$html2pdfFactory = $this->html2pdfFactory->create('P', 'A4', 'en', true, 'UTF-8', [10, 15, 10, 15]);
```

If the previous arguments are not provided, the factory uses its own default values. You can configure those default values by adding the bundle configuration to your config file:

```
noni_html2pdf:
    orientation: 'P'
    format: 'A4'
    lang: 'en'
    unicode: true
    encoding: 'UTF-8'
    margin: [10, 15, 10, 15]
```

Read more on the library `Html2pdf` [here](https://github.com/spipu/html2pdf/blob/master/doc/README.md).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance49

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~21 days

Total

3

Last Release

1600d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d7c6e440c75012faa882d11288bbe7918d805fe71722247debd57fe6bd448743?d=identicon)[94noni](/maintainers/94noni)

---

Top Contributors

[![94noni](https://avatars.githubusercontent.com/u/1358361?v=4)](https://github.com/94noni "94noni (8 commits)")

---

Tags

symfonypdfTCPDFhtml2pdf

### Embed Badge

![Health badge](/badges/94noni-html2pdf-bundle/health.svg)

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

###  Alternatives

[ensepar/html2pdf-bundle

Use HTML2PDF as a Symfony Service

27669.3k](/packages/ensepar-html2pdf-bundle)[sensiolabs/gotenberg-bundle

A Symfony bundle that provides seamless integration with Gotenberg for generating PDFs and screenshots from various sources (HTML, Markdown, Office documents, URLs) with a clean, builder-based API.

210210.4k2](/packages/sensiolabs-gotenberg-bundle)[nucleos/dompdf-bundle

This bundle provides a wrapper for using dompdf inside symfony.

54882.8k1](/packages/nucleos-dompdf-bundle)[padam87/rasterize-bundle

HTML to PDF Symfony bundle. Works with Puppeteer, PhantomJS, and more.

1579.4k](/packages/padam87-rasterize-bundle)[bobv/latex-bundle

Latex and pdf generator for Symfony 2

2432.7k](/packages/bobv-latex-bundle)[qipsius/tcpdf-bundle

A bundle to easily integrate TCPDF into Symfony

22709.1k](/packages/qipsius-tcpdf-bundle)

PHPackages © 2026

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