PHPackages                             pontedilana/weasyprint-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. pontedilana/weasyprint-bundle

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

pontedilana/weasyprint-bundle
=============================

Easily create PDF in Symfony by converting Twig/HTML templates.

3.0.0(5mo ago)40774.4k↓14.2%7[2 issues](https://github.com/pontedilana/WeasyPrintBundle/issues)MITPHPPHP 8.2.\* || 8.3.\* || 8.4.\* || 8.5.\*CI passing

Since Jul 17Pushed 5mo ago3 watchersCompare

[ Source](https://github.com/pontedilana/WeasyPrintBundle)[ Packagist](https://packagist.org/packages/pontedilana/weasyprint-bundle)[ GitHub Sponsors](https://github.com/endelwar)[ Fund](https://ko-fi.com/endelwar)[ RSS](/packages/pontedilana-weasyprint-bundle/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (10)Dependencies (15)Versions (18)Used By (0)

WeasyPrintBundle
================

[](#weasyprintbundle)

[PhpWeasyPrint](https://github.com/pontedilana/php-weasyprint) is a PHP (7.4+) wrapper for [WeasyPrint](https://weasyprint.org/) PDF generator. It allows you to generate PDF files from HTML string or URL.

The WeasyPrintBundle provides a simple integration for your Symfony project.

This bundle is massively inspired by [KnpLabs/KnpSnappyBundle](https://github.com/KnpLabs/KnpSnappyBundle), of which it aims to be a one-to-one substitute

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

[](#installation)

With [composer](https://getcomposer.org), require:

`composer require pontedilana/weasyprint-bundle`

Then enable it in your kernel (a flex recipe is coming soon):

```
// config/bundles.php
