PHPackages                             m-adamski/symfony-pdf-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. m-adamski/symfony-pdf-bundle

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

m-adamski/symfony-pdf-bundle
============================

Bundle for Symfony for conveniently generating PDF documents

3.0.0(2y ago)0640MITPHPPHP &gt;=8.2

Since Oct 25Pushed 2y agoCompare

[ Source](https://github.com/m-adamski/symfony-pdf-bundle)[ Packagist](https://packagist.org/packages/m-adamski/symfony-pdf-bundle)[ RSS](/packages/m-adamski-symfony-pdf-bundle/feed)WikiDiscussions master Synced 3w ago

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

PDF Bundle for Symfony
======================

[](#pdf-bundle-for-symfony)

Helper whose goal is to simplify the process of generating PDF documents using the [TCPDF library](https://tcpdf.org).

This bundle is compatible with Symfony 4.1 and Symfony 5.0. Symfony 3.4 compatibility abandoned.

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

[](#installation)

This bundle can be installed by Composer:

```
$ composer require m-adamski/symfony-pdf-bundle

```

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

[](#how-to-use-it)

There is only one function that generates an instance of the PDFDocument class with the default settings. You can modify parameters before generating the final PDF document.

MethodDescriptioninitDocumentA function that generates an instance of the PDFDocument classPDF Document
------------

[](#pdf-document)

An instance of the PDFDocument class that will be generated using the helper contains an additional set of functions.

MethodDescriptionwriteHTMLThe function sets the content of the document from the given HTML coderenderHTMLSimilar to the writeHTML function, the content of the document is set from the HTML code that will be generated from the given Twig templatesetFooterA function to configure the footer of a PDF documentsetFontWith this function, you can change the font that will be used when generating a PDF documentsaveThe function generates a PDF documentoutputThe function generates a PDF document and returns a response with the Content-Type header set to application/pdfgetPDFDataThe function returns the PDF document dataThere are also getters and setters for the basic parameters of a PDF document (author, tags, etc.).

License
-------

[](#license)

MIT

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity79

Established project with proven stability

 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 ~386 days

Recently: every ~482 days

Total

6

Last Release

880d ago

Major Versions

1.1.0 → 2.0.02020-02-07

2.0.0 → 3.0.02024-02-06

PHP version history (3 changes)1.0.0PHP ^7.1

2.0.0PHP ^7.2

3.0.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/99031579203ae7aff3a32b3309374cb5703c35abc4737509bc6b228b433d9943?d=identicon)[m-adamski](/maintainers/m-adamski)

---

Top Contributors

[![m-adamski](https://avatars.githubusercontent.com/u/21038303?v=4)](https://github.com/m-adamski "m-adamski (6 commits)")

---

Tags

pdf-bundlephpsymfonysymfony-bundle

### Embed Badge

![Health badge](/badges/m-adamski-symfony-pdf-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/m-adamski-symfony-pdf-bundle/health.svg)](https://phpackages.com/packages/m-adamski-symfony-pdf-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[symfony/web-profiler-bundle

Provides a development tool that gives detailed information about the execution of any request

2.3k160.5M1.2k](/packages/symfony-web-profiler-bundle)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k17.8k](/packages/prestashop-prestashop)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

567.3M140](/packages/symfony-ux-icons)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M577](/packages/shopware-core)

PHPackages © 2026

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