PHPackages                             inspiredminds/contao-isotope-pdf-templates - 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. [Templating &amp; Views](/categories/templating)
4. /
5. inspiredminds/contao-isotope-pdf-templates

ActiveContao-bundle[Templating &amp; Views](/categories/templating)

inspiredminds/contao-isotope-pdf-templates
==========================================

Adds a new document type in Contao Isotope where you can define PDF templates.

2.4.0(1y ago)03.9k↑35.3%31LGPL-3.0-or-laterPHPPHP &gt;=7.4

Since May 1Pushed 7mo ago3 watchersCompare

[ Source](https://github.com/inspiredminds/contao-isotope-pdf-templates)[ Packagist](https://packagist.org/packages/inspiredminds/contao-isotope-pdf-templates)[ Docs](https://github.com/inspiredminds/contao-isotope-pdf-templates)[ GitHub Sponsors](https://github.com/fritzmg)[ RSS](/packages/inspiredminds-contao-isotope-pdf-templates/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (12)Versions (18)Used By (1)

[![](https://camo.githubusercontent.com/9a793144c95a758eba52c5152e308289b95a28ad8a1f9310226272a0e41bde4f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e7370697265646d696e64732f636f6e74616f2d69736f746f70652d7064662d74656d706c617465732e737667)](https://packagist.org/packages/inspiredminds/contao-isotope-pdf-templates)[![](https://camo.githubusercontent.com/d8e0e408bac496d59120422790c48d39903236b3ec07856a302384d376905e30/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e7370697265646d696e64732f636f6e74616f2d69736f746f70652d7064662d74656d706c617465732e737667)](https://packagist.org/packages/inspiredminds/contao-isotope-pdf-templates)

Contao Isotope PDF Templates
============================

[](#contao-isotope-pdf-templates)

Adds a new document type in Contao Isotope where you can define PDF templates.

**Important:** version 2.x of this extension uses [mPDF](https://mpdf.github.io/) instead of TCPDF. Here are some things to note:

- mPDF only supports the following fonts: .
- mPDF has superior HTML and CSS capabilities.
- It is recommended to use a full HTML markup in your `iso_document_…` template.
- By default only PDF documents up to PDF version 1.4 are supported by the FPDI PDF-Parser used by mPDF, thus you may need to convert them to this version beforehand. However, you can [buy the commercial version](https://www.setasign.com/products/fpdi-pdf-parser/) in order to be able to convert any PDF.

[![Screenshot](https://raw.githubusercontent.com/inspiredminds/contao-isotope-pdf-templates/master/screenshot.png)](https://raw.githubusercontent.com/inspiredminds/contao-isotope-pdf-templates/master/screenshot.png)

Custom fonts
------------

[](#custom-fonts)

Since version `2.1.0` you are able to integrate custom fonts directly via the back end. First you need to upload the TTF files into a directory within `/files`. Then you need to chose that folder in the font settings of the document. After choosing the correct folder you need to save the settings, then you will be able to configure the discovered font files.

[![Screenshot](https://raw.githubusercontent.com/inspiredminds/contao-isotope-pdf-templates/master/font_screenshot.png)](https://raw.githubusercontent.com/inspiredminds/contao-isotope-pdf-templates/master/font_screenshot.png)

For each font you want to use you need enable it and set the variant and name of the font in lowercase.

*Note:* mPDF maps certain common font names to its own default fonts. If a font is not working, try setting a more unique font name.

Event
-----

[](#event)

The extension provides a `ModifyPdfEvent` with which you can access the `mPDF` Isotope `Document` instance, in order to change some parameters or add additional variables etc.

```
// src/EventListener/ModifyPdfEventListener.php
namespace App\EventListener;

use InspiredMinds\ContaoIsotopePdfTemplatesBundle\Event\ModifyPdfEvent;
use Symfony\Component\EventDispatcher\Attribute\AsEventListener;

#[AsEventListener(ModifyPdfEvent::EVENT_NAME)]
class ModifyPdfEventListener
{
    public function __invoke(ModifyPdfEvent $event): void
    {
        // Access the mPDF object instance
        $mpdf = $event->getPdf();

        // Access the Isotope Document instance
        $document = $event->getDocument();
    }
}
```

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance52

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 92.1% 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 ~130 days

Recently: every ~33 days

Total

17

Last Release

530d ago

Major Versions

1.0.0 → 2.0.02019-05-08

PHP version history (2 changes)1.0.0PHP &gt;=7.1

2.3.3PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/25f6ec05570f72d0fcc4d0a4fef2309799d53badf8b30484284e73724661e0d8?d=identicon)[fritzmg](/maintainers/fritzmg)

---

Top Contributors

[![fritzmg](https://avatars.githubusercontent.com/u/4970961?v=4)](https://github.com/fritzmg "fritzmg (35 commits)")[![baumannsven](https://avatars.githubusercontent.com/u/2493263?v=4)](https://github.com/baumannsven "baumannsven (1 commits)")[![berecont](https://avatars.githubusercontent.com/u/33038265?v=4)](https://github.com/berecont "berecont (1 commits)")[![katgirl](https://avatars.githubusercontent.com/u/1223243?v=4)](https://github.com/katgirl "katgirl (1 commits)")

---

Tags

contaocontao-bundlepdf-generationpdftemplatetemplatescontaoisotope

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/inspiredminds-contao-isotope-pdf-templates/health.svg)

```
[![Health](https://phpackages.com/badges/inspiredminds-contao-isotope-pdf-templates/health.svg)](https://phpackages.com/packages/inspiredminds-contao-isotope-pdf-templates)
```

###  Alternatives

[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k251.7M11.6k](/packages/symfony-framework-bundle)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[metamodels/core

MetaModels core

10156.4k68](/packages/metamodels-core)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M577](/packages/shopware-core)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)[contao-community-alliance/dc-general

Universal data container for Contao

1680.8k92](/packages/contao-community-alliance-dc-general)

PHPackages © 2026

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