Snappy - PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page
Snappy is a PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. It uses the excellent webkit-based wkhtmltopdf and wkhtmltoimage.
$snappy = new Pdf('/usr/local/bin/wkhtmltopdf');
header('Content-Type: application/pdf');
header('Content-Disposition: attachment; filename="file.pdf"');
echo $snappy->getOutput('http://www.github.com');
http://knplabs.com/
https://github.com/KnpLabs/snappy
License:
Tech:
Tags: