dogwonder / Bookler-2.0

Create PDF books from HTML

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bookler 2.0

Create PDF books from HTML

Based on Bookler

npm install gulp --save-dev

npm install

You might need to manually install prince locally if npm install fails

Build Process

npm run start for development npm run build for production abd PDF generation (builds to /dist)

Prince XML can be used for non commercial purposes. If you wish to use this commerically check out their website.

Data

The chapters files are rendered in markdown and located in the src/markdown folder. And data/data.json is where we define the chapters and toc. The chapter title name needs to match the mardown filename exactly.

The book title and subtitle are also defined in the data.json file.

PDF

Example file

Note the book size is 6in x 9in this can be changed in the CSS for specific print sizes.

About

Create PDF books from HTML


Languages

Language:CSS 63.9%Language:JavaScript 19.4%Language:Nunjucks 10.4%Language:HTML 6.3%