padam87 / rasterize-bundle
HTML to PDF Symfony bundle. Works with Puppeteer, PhantomJS, and more.
Package info
github.com/Padam87/RasterizeBundle
Type:symfony-bundle
pkg:composer/padam87/rasterize-bundle
v4.5.0
2026-03-11 01:46 UTC
Requires
- php: ^8.4
- symfony/config: ^6.0 || ^7.0 || ^8.0
- symfony/dependency-injection: ^6.0 || ^7.0 || ^8.0
- symfony/http-kernel: ^6.0 || ^7.0 || ^8.0
- symfony/process: ^6.0 || ^7.0 || ^8.0
- symfony/stopwatch: ^6.0 || ^7.0 || ^8.0
Requires (Dev)
- phpunit/phpunit: ^12.0
This package is auto-updated.
Last update: 2026-03-11 01:47:44 UTC
README
Rasterize Bundle
A bundle to rasterize web pages with Puppeteer (or other) for Symfony2
$response = new Response( $this->get(Rasterizer::class)->rasterize( $this->renderView('Bundle:Folder:template.pdf.twig') ), 200, [ 'Content-Type' => 'application/pdf', 'Content-Disposition' => 'attachment; filename="my.pdf"' ] );
Providers
How to...