我无法根据需要使用pandoc将.html文件转换为docx

问题描述 投票:0回答:1

尝试使用 pandoc 命令将 file.html 转换为 output.docx 但未能获得所需的输出

潘多克。 ile.html -o 输出.docx --reference-doc=custom-reference.docx

第一个图像是输出,第二个图像是自定义参考,第三个图像是file.html。 [[在此处输入图像描述](https://i.sstatic.net/Qs3bIS7n.png)](https://i.sstatic.net/Jp16aiq2.png)

我期待按照自定义引用 docx 的样式将 file.html 转换为 output.docx

html docx pandoc
1个回答
0
投票

参考文档仅在将 转换为 docx 时应用,但在将 from docx 转换时不应用。使用 CSS 文件(和 pandoc 选项

--css
)来设置 HTML 输出的样式。

© www.soinside.com 2019 - 2024. All rights reserved.