更新时间:2023-11-09 08:01:46
我一直在命令行中使用它,而不是作为库使用,而是 HTMLDOC 给了我很好的结果,它至少可以处理一些 CSS(我看不出有多少).
I've always used it on the command line and not as a library, but HTMLDOC gives me excellent results, and it handles at least some CSS (I couldn't easily see how much).
这是一个示例命令行
htmldoc --webpage -t pdf --size letter --fontsize 10pt index.html > index.pdf