背景介绍:
使用pandoc将写好的md文件, 转化为word, 并使用word模板, 就出现以下报错:
报错信息如下:
pandoc: Data.Binary.Get.runGet at position 0: not enough bytes
CallStack (from HasCallStack):
error, called at libraries\binary\src\Data\Binary\Get.hs:345:5 in binary-0.8.9.1:Data.Binary.Get

使用的语句是:
pandoc input.md -o document.docx --reference-doc=a.docx
input.md是已有的md文件,
document.docx是要生成word文档
a.docx是word模板,
报错原因:
1. 这个a.docx模板里面的内容是空的, 自己在这个模板里面, 增加一点修改样式即可

2.有可能你的pandoc.exe文件损坏, 去官网下载新的版本即可,官网Release pandoc 3.6 · jgm/pandoc · GitHub

3514

被折叠的 条评论
为什么被折叠?



