【GitBook】生成PDF

前提条件

GitBook生成PDF依赖calibre

安装calibre

  • 官网下载: https://download.calibre-ebook.com/
Previous calibre releases
Choose a series of calibre releases

6.x   [19 releases]
5.x   [58 releases]
4.x   [28 releases]
3.x   [66 releases]
2.x   [95 releases]
1.x   [49 releases]
0.9.x   [45 releases]
0.8.x   [71 releases]
0.7.x   [59 releases]
0.6.x   [38 releases]
  • 下载3.x版本,否则在gitbook pdf的过程中会卡住
  • 打开3.48.0下载地址: https://download.calibre-ebook.com/3.48.0/
    【GitBook】生成PDF_第1张图片
  • windows 64位下载地址: https://download.calibre-ebook.com/3.48.0/calibre-64bit-3.48.0.msi

生成PDF

  • 运行gitbook pdf
    【GitBook】生成PDF_第2张图片
    安装了calibre但是没有配置环境变量导致转换PDF失败,默认安装calibre会自动加入环境变量,需要重启一个命令行窗口让新的环境变量生效,在窗口再次运行gitbook pdf即可
    【GitBook】生成PDF_第3张图片

你可能感兴趣的:(文档工具,pdf,gitbook,calibre)