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) would go:
wkhtmltopdf.exe --some-option "<div>Some html <b>formatted</b> text</div>" www.host.com/page_to_print.html file.pdf
My question is: Is there an option to use <html><head></head><body><h1>This is a header</h1></body></html>
in place of www.host.com/page_to_print.html
?
Thanks for any help.
shell_exec
orsystem
? You understand that I am not actually programming directly for the command line ;) – Bubbler