Registry / utility / h4cc-wkhtmltopdf-amd64

h4cc-wkhtmltopdf-amd64

JSON →
library0.12.4phppackagistunverified

Convert html to pdf using webkit (qtwebkit). Static linked linux binary for amd64 systems.

composer require h4cc/wkhtmltopdf-amd64
INSTALL
IMPORT
SIG · H4CC-WKHTMLTOPDF-A
H
h4cc-wkhtmltopdf-amd64
utilityphpv0.12.4
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\Snappy\Pdf;

Generate a PDF from HTML using wkhtmltopdf binary

use Knp\Snappy\Pdf; $snappy = new Pdf('/usr/local/bin/wkhtmltopdf-amd64'); $snappy->generateFromHtml('<h1>Hello World</h1>', '/tmp/output.pdf');
Debug
Known issues
gotchaRequires the wkhtmltopdf binary to be installed separately; this package only provides the binary for amd64 Linux.
fix
Ensure the binary is executable and the path is correctly passed to the wrapper library (e.g., KnpSnappy).
affects: >=0.12.0
Upgrade
Version history
0.12.4latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
h4cc-wkhtmltopdf-amd64 — pip install h4cc-wkhtmltopdf-amd64 · libregistry