public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* RFC: printing via headless chrome
@ 2022-01-31 16:32 Albert Krewinkel
       [not found] ` <87fsp3eti7.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Albert Krewinkel @ 2022-01-31 16:32 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: RFC: printing via headless chrome
       [not found] ` <87fsp3eti7.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
@ 2022-02-01 20:15   ` Philip Hodder
  0 siblings, 0 replies; 2+ messages in thread
From: Philip Hodder @ 2022-02-01 20:15 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1836 bytes --]

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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.

[-- Attachment #1.2: Type: text/html, Size: 2800 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-01 20:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-31 16:32 RFC: printing via headless chrome Albert Krewinkel
     [not found] ` <87fsp3eti7.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-02-01 20:15   ` Philip Hodder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).