First off, thanks for the pointer to paged.js - looks interesting.
I'm thinking about implementing support for printing via headless chrome
(or chromium) but am not certain whether that's a good idea.
The background is that it would be nice to quickly convert reveal.js
slides to PDF or to use paged.js by loading it as a JS library, and
without having to install the pagedjs-cli command-line program.
I talked about this a little with Romain Lesur, who was so kind to talk
about his experiences in the development of [pagedown][]. From what I
understand, the best method to communicate with a headless chromium is
via websockets. Implementing that would be a bit of work, but also
require additional Haskell libraries ("websockets" and its dependencies
"entropy" and "bytestring-builder").
[pagedown]: https://pagedown.rbind.io/
What I'm trying to gather here is if this would be worth the effort, the
extra code and the additional dependencies. Does this sound useful? Is
it something you have been missing? Are there other things that this
would be useful for?
Thanks,
--
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124