First off, thanks for the pointer to paged.js - looks interesting. 

Would this be similar in functionality to the --wkhtmltopdf option? Even if it is it might be worth having more options for PDF output.

Thanks!

Phil

On Monday, 31 January 2022 at 16:54:04 UTC Albert Krewinkel wrote:
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

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/45d05ce1-b81e-4e39-9874-715d133e8d98n%40googlegroups.com.