pandoc报错--Data.Binary.Get.runGet at position 0: not enough bytes

背景介绍: 

使用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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值