I used puppeteer in my book’s (https://www.handsonscala.com/) build pipeline to convert HTML sources into PDFs, for online distribution and printing. This let me write and style my book using common web technlogies (e.g. bootstrap CSS) rather than needing to fiddle with specialized tooling like Pandoc or LaTeX, and it ended up looking pretty good.
Works flawlessly, and has exactly the configuration knobs you would expect and want. Took a bit of plumbing to call into a Node.js script from my Scala build logic, but all in all ended up being like 20 lines of plumbing which was straightforward to write and understand. A welcome change after struggling with bugs in wkhtmltopdf!
This is a really interesting use case! Screenshots of your book look great.
I'd just started looking into the existing tools like those you mentioned for e-book authoring and it's quickly gotten overwhelming. From what you've described, I'm interested in looking into puppeteer as an alternative workflow.
Works flawlessly, and has exactly the configuration knobs you would expect and want. Took a bit of plumbing to call into a Node.js script from my Scala build logic, but all in all ended up being like 20 lines of plumbing which was straightforward to write and understand. A welcome change after struggling with bugs in wkhtmltopdf!