Global Options

-d, –dpi \<dpi>

改变dpi。(在x11为基础的系统上无效)

–image-dpi \<integer>

图片dpi。

-s, –page-size \<Size>

改变纸张大小

-B, –margin-bottom \<unitreal>

设置下边距

-L, –margin-left \<unitreal>

设置左边距

-R, –margin-right \<unitreal>

设置右边距

-T, –margin-top \<unitreal>

设置上边距

Page Options

–javascript-delay

等待js执行的时间

–window-status

当window.status等于该设定的值时,才开始渲染

Headers And Footer Options

–footer-html \<url>

页脚html

–header-html \<url>

页眉html

经测试,发现设置页眉页脚与页面上下边距有一定关系。不知道怎么弄的,好像页眉页脚变大后,页边距也会跟着变大。将上下边距设置为页眉页脚高度 * 21.2可以让页眉页脚津贴页边。

页眉页脚中自带以下参数
* [page] Replaced by the number of the pages currently being printed
* [frompage] Replaced by the number of the first page to be printed
* [topage] Replaced by the number of the last page to be printed
* [webpage] Replaced by the URL of the page being printed
* [section] Replaced by the name of the current section
* [subsection] Replaced by the name of the current subsection
* [date] Replaced by the current date in system local format
* [isodate] Replaced by the current date in ISO 8601 extended format
* [time] Replaced by the current time in system local format
* [title] Replaced by the title of the of the current page object
* [doctitle] Replaced by the title of the output document
* [sitepage] Replaced by the number of the page in the current site being converted
* [sitepages] Replaced by the number of pages in the current site being converted

用html当作页眉页脚时,上面的参数包含在document.location.search中,是一个用’&’和’=’分隔的query字符串。

–replace \<name> \<value>

替换页眉页脚中的[name]为value。当使用html时,name/value被包含在document.location.search中

分类: 其他技术

1 条评论

fleck 5600 metered water softener · 2020年4月8日 上午7:28

Heya i am for the first time here. I found this board and I find It
really useful & it helped me out much. I hope to give something back and help
others like you aided me.

发表评论

电子邮件地址不会被公开。 必填项已用*标注