安装 wkhtmltopdf#
使用 brew 进行安装
brew install --cask wkhtmltopdf将目录下的所有
html文件一键转换为 pdf 格式for f in *.html; do wkhtmltopdf --load-error-handling ignore -n --enable-local-file-access $f "$f.pdf"; done
使用 brew 进行安装
brew install --cask wkhtmltopdf
将目录下的所有 html 文件一键转换为 pdf 格式
for f in *.html; do wkhtmltopdf --load-error-handling ignore -n --enable-local-file-access $f "$f.pdf"; done