如何将此网址的整个网页打印为pdf文件?

时间:2018-01-07 13:09:43

标签: pdf webpage wkhtmltopdf

我想将https://spring.io/guides/gs/maven/下载并转换为pdf文件

但我在以下命令中尝试了wkhtmltopdf的几个选项,它们只能打印网页的开头部分

wkhtmltopdf  https://spring.io/guides/gs/maven/ "Building Java Projects with Maven.pdf"
wkhtmltopdf -n https://spring.io/guides/gs/maven/ "Building Java Projects with Maven.pdf"
wkhtmltopdf --no-stop-slow-scripts https://spring.io/guides/gs/maven/ "Building Java Projects with Maven.pdf"

如何打印整个网页?

另请注意代码片段有水平滚动条。是否可以打印整个代码片段?

感谢。

0 个答案:

没有答案