wkhtmltopdf是个开源工具,兼容Linux,Windows等操作系统,可以实现将网页保存为pdf的功能。调用示例:

wkhtmltopdf --grayscale --disable-smart-shrinking --header-html head.htm[......]

阅读全文