Migration guides
Migrate from wkhtmltopdf, library by library
Most libraries only run a command line. Install pdfkiln, point the library at its wkhtmltopdf, and your code and templates stay as they are. Each guide says what the library expects from wkhtmltopdf, how pdfkiln meets it, and what was tested.
- knp-snappy PHP
The PHP wrapper of Symfony bundles and laravel-snappy.
- laravel-snappy PHP, Laravel
knp-snappy for Laravel: two lines of
.env. - phpwkhtmltopdf PHP
mikehaertl’s wrapper: one option, or nothing.
- pdfkit Python
python-pdfkit: nothing to change if it is in the
PATH. - wicked_pdf Ruby on Rails
Drop the
wkhtmltopdf-binarygem, setexe_path. - imgkit Python
Screenshots with pdfkiln’s
wkhtmltoimage. - Odoo ERP
Reports keep their page count; nothing to configure.
- Frappe and ERPNext ERP
HTML headers and footers, with their JavaScript.
- Rotativa .NET
Rotativa.AspNetCore and IIS, on Windows.
Your library is not here? If it calls the wkhtmltopdf command, the same steps apply. The C library libwkhtmltox, used by DinkToPdf, is not provided.