From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30082 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: RFC: printing via headless chrome Date: Mon, 31 Jan 2022 17:32:16 +0100 Message-ID: <87fsp3eti7.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34257"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBKNI4CHQMGQEF4LIUPY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jan 31 17:54:04 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f60.google.com ([209.85.128.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nEZwK-0008le-Nq for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 31 Jan 2022 17:54:04 +0100 Original-Received: by mail-wm1-f60.google.com with SMTP id j18-20020a05600c1c1200b0034aeea95dacsf10594342wms.8 for ; Mon, 31 Jan 2022 08:54:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1643648044; cv=pass; d=google.com; s=arc-20160816; b=CwSSchirv+7IuiZ+PMtGsyz23U/VSkf9V0cSi199EcYKmx+29xxSJFvGQPAdL2oCeE qY5QDW985h6AZhoIJCpbIcuq8IdhJHoJGIAi3AFTzH22b1JVe4G27WhQuQvkchglUJY2 qMbvlbDW8DiMhLoCffiNTAaMOZmTU7/qPS5O4nr2SAn7MZ/zfWUWGarV47v/7bw46ivY TeGeRFf1gUp2FyIvQuodJBXjNyF5ICZ9Dy1XrZYdh/jhiRhh2KSWXJh20ok1WrhNzez8 9wrF/hhoneuEnhsV/+i7/wx56T2FHcOino9PYgXCrbS7OihMd5TVAhfnoGCQag5VUbkm E9zA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:message-id :date:subject:to:from:sender:dkim-signature; bh=dc1NRT+B/JcP8lS+1RiEE3jqQ5SGpDwzId06tJto4Z4=; b=tl546yj5w21MLsohSyBV9gjTb9SNz11YCy9HQ1evPU9B/BhyWVJV+rtUcva0fByWLB zdjhC7s78PW6RwFWncI6yKX4sufwRWUKuvu2EIoFuIMyDalOfUv/ZnKAOX9cfCKJkFFN s05QNG/Gd6kH1TEyH7oS7MyLg+Si6G4/n+oUAT7t6QfQ338T6WQ4Ydeg4XE/mT6NR6bh i9+2VJ9ARIYnnfHKFW7rohtQ7+gmG/C/KuIA0hfIKhHNkzpafGEd16ZnDRmWySBfEzCS V93UyEmLph5uN8G/0l9x5zigdOM8ynTgIE16xiBlwUD+dwobhhZYMw9leLOEb6iWfwTT 25Lg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.151 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=dc1NRT+B/JcP8lS+1RiEE3jqQ5SGpDwzId06tJto4Z4=; b=aHKbKFO4IJ7Vv45pwH1DwzWvRy90c7ee2SJxsbvQK6LaTj56keUYvqJg/6lXEur9J6 ms6vszs1JzD+xTV7kSlI/AlCavKD1zDpho43Oc+dMsyt+cZw1XjLewZAhypnr4B+bfVH ICKO724r5cgpQe+5pbpaJLxG0fX11CXQy3KIkbMqWwPCzTAS/Y4fzCSElxqEP3e0rsmJ GANCiiAQm9Cq4GCtjKblAqMiGbqRM6WyuE/30QTy6w7i9HsZPp87rg48aYvB2MAGBnc3 6x3gMhz4w4QSlak0dUK5vnXGNIB9aa9vCBEBrwrsQUTYvQJIh7m59FFnFtX5b+chjgU7 Dutg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:subject:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=dc1NRT+B/JcP8lS+1RiEE3jqQ5SGpDwzId06tJto4Z4=; b=dw+YdibP3Ow+kWpdAgQlsFVMnQkrEnuicUeV6A+idkOt3SmwmMuCtNlDrwMpNGI33L Qk4IMFmc39Al/ZHQMgQfi+XBnpdqQFOcW8b7+UVjiFshjMXA1STaSwTiw2SzthZZ9ZiK y3XtEhz3fkhWyiw3jKyR8k7T0taQ9/YzY61XR+5wASCoI7W7P6yjAzSsKBcSTioY5OBg ZYE+yp/s+kHhZ4A9+XMZsevERtREGUi5bSDn8OwRMEwnEtznNfy/6ZT4lrfo4JoTF+30 jlQFiJe1iY/KrdM6tXIxoUUwQk3Ij6CwHsnLp6OCZSPzqh5Tu+WbicnVyBIj2shb3qsa 2ytA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532dFY4gs/mvhOLCA78U+LKNXZr2sqbjjKn+1sC4ZZtg5XjBj3vS 9zA1GZa6BRxANMCPPCnCi7U= X-Google-Smtp-Source: ABdhPJwYy8IYjtWzQdNPERhKlsFiJBQBUtGyJdRjGthOtXH5YlDp/e+pLEAun2hZj8baqwOMG2DmXQ== X-Received: by 2002:a05:6000:10cf:: with SMTP id b15mr18271806wrx.70.1643648044137; Mon, 31 Jan 2022 08:54:04 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6000:3c8:: with SMTP id b8ls1737778wrg.0.gmail; Mon, 31 Jan 2022 08:54:00 -0800 (PST) X-Received: by 2002:adf:e941:: with SMTP id m1mr17959643wrn.84.1643648040757; Mon, 31 Jan 2022 08:54:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643648040; cv=none; d=google.com; s=arc-20160816; b=CUwSukKSbOJNwEoZS0q0G3R3y1haRqqi0gRixcPaPdiAMSCmjpcshoxNm0nx8D8oI9 z2pObhimh0gB9d+FGHo/OGEsvUNf6pDeg6u22vs+21v7mzKCYeOJ7XswyRQ/D3ze7sDo /XM8/dJlQlcyV/NsavBjvWzcufcVyrJqkaZTZF3IdBj2GScIuJncuPsROqNPehDPhAtn tdliMfxD8T+aV2EqBHXeff+t8vIup7sn8T9UsbF9ryFNmwTwJ6eFyLiVbvQHsUWE1p94 PO5Fq8Oeh6DP+N0mw8w9uIJOe5UQFouC4AFuKbm1URBREmjK3QKOoObAsv1iaPHuVwOB 4AoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:subject:to:from; bh=94we8dtH7hvGGuW4C+uZHRwecKnVtsWySyJrbLmq5Cc=; b=my+j4XQ7FR85RT3+cVUVcb5t4hG/W7mVmhJAf+Xleg1B7DM9KSOa0zALFkLR0i43hs ouZ56YiBg/RlFG40vhC8ZiN+CNVlaBuKl7afklKVzDOf+jGmEzDdxeyevNm1eqoHu74d eQ4IDGte09YvR7H9UhShG9rdzxSCHjs/UCfBIWG0D+AIeQObgWag19eOzHsUtLISf77L ce+qwE/DujEGj2T0HZFTkl1+XwA0Krw8Iv//JVauzRC5KBsxi67pyxdMpIKGxyqhEE7+ BdY84b7k1bOOZQRQycZknkjulY+0SVJuIamvSuG6cw8xL9wGk1wCcDLfQcvYB08XuRM8 7vCw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.151 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Original-Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org. [80.241.56.151]) by gmr-mx.google.com with ESMTPS id l24si22129wmg.1.2022.01.31.08.54.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jan 2022 08:54:00 -0800 (PST) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.151 as permitted sender) client-ip=80.241.56.151; Original-Received: from smtp102.mailbox.org (smtp102.mailbox.org [80.241.60.233]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4JnZ080pR7z9skx for ; Mon, 31 Jan 2022 17:54:00 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.151 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:30082 Archived-At: 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