Is there any wkhtmltopdf option to convert html text rather than file?

后端 未结 5 745
栀梦
栀梦 2021-02-19 09:47

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

5条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-19 10:00

    In addition to the answer provided by pp. If you prefer not to escape the < > characters, you can also do the following:

    echo | set /p="

    Magical ponies

    " | wkhtmltopdf - test.pdf

提交回复
热议问题