PHPackages                             whiteoctober/tcpdf-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. whiteoctober/tcpdf-bundle

Abandoned → [qipsius/tcpdf-bundle](/?search=qipsius%2Ftcpdf-bundle)ArchivedSymfony-bundle[PDF &amp; Document Generation](/categories/documents)

whiteoctober/tcpdf-bundle
=========================

A bundle to easily integrate TCPDF into Symfony2

1.1.2(7y ago)961.5M↓63%42[7 issues](https://github.com/sampart/WhiteOctoberTCPDFBundle/issues)5MITPHPPHP &gt;=5.3.2

Since Jun 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/sampart/WhiteOctoberTCPDFBundle)[ Packagist](https://packagist.org/packages/whiteoctober/tcpdf-bundle)[ Docs](https://github.com/whiteoctober/WhiteOctoberTCPDFBundle)[ RSS](/packages/whiteoctober-tcpdf-bundle/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (4)Dependencies (2)Versions (9)Used By (5)

*This project is not actively maintained. For Symfony 3.4 and above, you may wish to use [this fork](https://github.com/Qipsius/QipsiusTCPDFBundle).*

WhiteOctoberTCPDFBundle
=======================

[](#whiteoctobertcpdfbundle)

This bundle facilitates easy use of the TCPDF PDF generation library in Symfony2 applications.

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

[](#installation)

### Step 1: Setup Bundle and dependencies

[](#step-1-setup-bundle-and-dependencies)

```
composer require whiteoctober/tcpdf-bundle

```

#### Version constraining (optional)

[](#version-constraining-optional)

By default, this bundle does not constrain the version of TCPDF that composer installs. ([An explanation of this unusual decision is here](https://github.com/whiteoctober/WhiteOctoberTCPDFBundle/issues/53)). This means that a `composer update` could update to a new major version of TCPDF. Since this bundle is only a thin wrapper around TCPDF, you can normally do such an upgrade without issue.

However, if you do wish to constrain the TCPDF version, find out what version you currently have installed with:

```
composer show tecnickcom/tcpdf
```

And amend your project's `composer.json` to add a TCPDF version constraint in the `requires` section. For example, if TCPDF version `6.2.17` was installed, `"tecnickcom/tcpdf": "^6.2.17"` will allow anything &lt; 7 when upgrading.

### Step 2: Enable the bundle in the kernel

[](#step-2-enable-the-bundle-in-the-kernel)

Add the bundle to the `registerBundles()` method in your kernel:

In Symfony &lt; 4:

```
// app/AppKernel.php
