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)0630MITPHPPHP &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 today

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 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity78

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

826d 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

[prestashop/prestashop

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

9.0k15.4k](/packages/prestashop-prestashop)[elibyy/tcpdf-laravel

tcpdf support for Laravel 6, 7, 8, 9, 10, 11

3542.7M5](/packages/elibyy-tcpdf-laravel)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[creagia/laravel-sign-pad

Laravel package for of E-Signature with Signature Pad and Digital Certified Sign with TCPDF

54097.2k](/packages/creagia-laravel-sign-pad)[qipsius/tcpdf-bundle

A bundle to easily integrate TCPDF into Symfony

22709.1k](/packages/qipsius-tcpdf-bundle)[jgrygierek/batch-entity-import-bundle

Importing entities with preview and edit features for Symfony.

101.1M1](/packages/jgrygierek-batch-entity-import-bundle)

PHPackages © 2026

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