lwchkg / gitbook-pdfgen

PDF generator(s) for GitBook
Apache License 2.0
15 stars 6 forks source link

GitBook PDF Generator(s)

Documentation is not finished yet. Before the documentation is done, you may check the discussion at https://github.com/GitbookIO/gitbook/issues/1470 for ideas.

Installation

  1. npm install -g gitbook-pdfgen
  2. Install wkhtmltopdf and add wkhtmltopdf to path.
  3. Download the sample project at https://github.com/GitbookIO/gitbook/issues/1470 to project path
  4. cd [project path] && npm install && gitbook install
  5. run gitbook-pdfgen at the project path, which contains book.json. The pdf generated is book_wk.pdf
  6. run gitbook-pdfgen --help for help of the command line.
  7. Modify the book.

Configuration

Known issues