padam87 / rasterize-bundle
HTML to PDF Symfony bundle. Works with Puppeteer, PhantomJS, and more.
Installs: 73 954
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 3
Forks: 7
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^8.0
- symfony/config: ^5.4|^6.0
- symfony/dependency-injection: ^5.4|^6.0
- symfony/http-kernel: ^5.4|^6.0
- symfony/process: ^5.4|^6.0
- symfony/stopwatch: ^5.4|^6.0
Requires (Dev)
- mockery/mockery: ~1.4
- phpunit/phpunit: ~9.0
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...