Registry / utility / knplabs-knp-snappy-bundle

knplabs-knp-snappy-bundle

JSON →
library1.10.6phppackagistunverified

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

composer require knplabs/knp-snappy-bundle
INSTALL
IMPORT
SIG · KNPLABS-KNP-SNAPPY
K
knplabs-knp-snappy-bundle
utilityphpv1.10.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Pdf
use Knp\Bundle\SnappyBundle\Snappy\Pdf;

Generate a PDF from an HTML string.

<?php use Knp\Bundle\SnappyBundle\Snappy\Pdf; $pdf = new Pdf('/usr/local/bin/wkhtmltopdf'); echo $pdf->getOutput('<h1>Hello</h1>');
Debug
Known issues
breakingRequires wkhtmltopdf binary installed on the server.
fix
Install wkhtmltopdf and set the correct path.
affects: >=1.0
Upgrade
Version history
1.10.6latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
knplabs-knp-snappy-bundle — pip install knplabs-knp-snappy-bundle · libregistry