当我尝试在 macOS 中使用 pandoc 将 html 文件转换为 pdf 时,如下所示:
> cd api
> ls
__404error.html categories.json generated_locales.g index.html index.json main main_dev search.html static-assets
> pandoc -s doc/api/'*.html' -o output.pdf
pandoc: doc/api/*.html: withBinaryFile: does not exist (No such file or directory)
我应该怎么做才能解决这个问题?这是 pandoc 版本信息:
> pandoc -v
pandoc 3.1.2
Features: +server +lua
Scripting engine: Lua 5.4
User data directory: /Users/xiaoqiangjiang/.local/share/pandoc
Copyright (C) 2006-2023 John MacFarlane. Web: https://pandoc.org
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.