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
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.
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.
Note the book size is 6in x 9in this can be changed in the CSS for specific print sizes.