使用样式将Pandoc HTML转换为PDF

时间:2018-06-05 14:09:50

标签: pandoc

我有一个HTML文档,我希望使用pandocwkhtmltopdf作为引擎转换为PDF。

基于pandoc manual,我正在运行以下命令:

pandoc index.html -t html -o test.pdf --css=style.css

当我这样做时,我得到以下输出:

Loading pages (1/6) Warning: Failed to load file:///var/folders/6d/rt2z_w650f1_xfkq8g7sm59m0000gn/T/style.css (ignore) Counting pages (2/6) Resolving links (4/6) Loading headers and footers (5/6) Printing pages (6/6) Done

如果我在运行该命令的目录中列出文档,我会得到以下内容:

index.html style.css

我错过了什么?

1 个答案:

答案 0 :(得分:1)

pandoc 2.1.3(可能还有早期版本)中有a bug

尝试升级到the most recent release

相关问题