lwchkg / gitbook-pdfgen

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

Using paged.js instead of wkhtmltopdf for rendering #8

Open lwchkg opened 5 years ago

lwchkg commented 5 years ago

gitbook-pdfgen is now using wkhtmltopdf as a backend, which is old and insecure. A viable replacement should be found ASAP.

Currently, paged.js appears to be a viable alternative, as indicated by https://www.pagedmedia.org/pagedjs-sneak-peeks/

One example using paged-js in node is found in https://gitlab.pagedmedia.org/tools/pagedjs-cli. I might be able to use the project/code directly.