【发布时间】:2015-06-01 06:24:00
【问题描述】:
我在命令行中使用 wkhtmltopdf 将 html 转换为 pdf 并且工作正常。
但我面临的唯一问题与页面大小有关,因为我的页面大小是 A4,所以它在文档中创建分页,
那么有什么方法可以根据 html 内容的高度创建一个高度的 pdf。
由于我的 html 内容页面是动态的,并且它的高度每次都会根据用户 ID 不同。
我在 Linux Ubuntu 环境中使用的命令:
wkhtmltopdf <source> <destination>
【问题讨论】:
-
有什么方法可以传递参数,例如 wkhtmltopdf 的自动高度
标签: html linux ubuntu pdf wkhtmltopdf