I recently stumbled on wkhtmltopdf and have found it to be an excellent tool for on-the-fly conversion from html to pdf in the browser.
A typical usage (in Windows) woul
You can pipe content into wkhtmltopdf using the command line. For Windows, try this:
echo "blep
" | wkhtmltopdf.exe - test.pdf
This reads like "echo
, output it's stdout (standard out stream) to wkhtmltopdf stdin (standard in stream)". blep
The dash -
in the wkhtmltopdf command means that it takes it's input from stdin and not a file.
You could also echo HTML into a file, feed that file to wkhtmltopdf and delete that file inside a script.