Fork me on GitHub

Gitbook 制作 PDF

通常需要将Gitbook的内容转成PDF格式,方便离线保存

一、安装Caliber应用程序

官网下载

  • Windows 环境变量添加:

添加到系统path末尾:

1
;C:\Program Files (x86)\Calibre2

  • 验证是否安装成功
1
2
3
4
5
// cmd
ebook-convert --version

ebook-convert.exe (calibre 3.43.0)
Created by: Kovid Goyal <kovid@kovidgoyal.net>

二、GitBook制作PDF

  • npm 安装 ebook-convert
1
npm install ebook-convert -g
  • Gitbook 根目录下运行:
1
gitbook pdf

在根目录下会生成book.pdf


转载请注明出处:https://github.com/imperio-wxm


Thank you for your support.