From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32414 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'William Lupton' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: How best to determine (in a lua filter) that PDF is being generated? Date: Tue, 28 Mar 2023 18:37:34 +0100 Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000035de6a05f7f9513d" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2274"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCS4HJ6WSAHBB2WLRSQQMGQEVNFFC3Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Mar 28 19:37:52 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f188.google.com ([209.85.208.188]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1phDGY-0000Ll-Sp for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 28 Mar 2023 19:37:50 +0200 Original-Received: by mail-lj1-f188.google.com with SMTP id k10-20020a2eb74a000000b0029a4ab232c6sf2857002ljo.17 for ; Tue, 28 Mar 2023 10:37:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680025070; cv=pass; d=google.com; s=arc-20160816; b=DzSmCyYXukOJusyt32/pg3jGlhsXPOkSflDmgdQSfhYUg/A41Qs1/IQgUC7XWQ8pDQ bLiQkh25vP4ugN5FMp38T68IIAEH4bniq+g7p3OSyf2qGjs/B2PcvGVdj4fsb80K8mny ZU/pjv7bCJr1rVLBQt/lcWkqJsb7s0QdsnooF4E4iOAVQYkc8cs4bnCezGyILcnA6uE/ F+fg4HrcnKq5D1cq8aSdZNaAyf3w6yLqbkkH6qVp6QgK6xonG2JVjXhOYDef+uF8zR0M KeELp8Jpzc+wTZKxcMAI0tNQRVY5lBI0gnxw/3+GmSci29a4CAGulTQsPjqn7uVgSYh2 yR5A== 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:to:subject:message-id:date :from:mime-version:dkim-signature; bh=d5MZF7ZepSmarSdm+u4xNT8eSgKRvJxAgmSQS7ndeHM=; b=gJdS2B6nQFG+5zCzw9E3zYYDT6mrfRVhxLmrHb0nFXoguHiYlKRGDB2xP9vt5x6qT1 lBPpFaRiXvms0uH5YaJPRh9TNkWP++Ohd2lYCaKj9LxXZzNLaAl4tIJ92D1TP2JUlPhL Jsbwl8Aj60wCXlz/6N/xJEy2EozcbETVlYvnSb3rY/IXa7xXTppQNxmuafI82UPwhmhj QmSvFonQWGa8u3XDmAB1QsJMJKyjuI/yNuP6v3zNmHJVkqYNGtvOtr42gmBfrvxR5EZ1 m0dmA8oW8C5TYxbkccByjVrFy1ronY3kAa+P/ovFK2YNbx16BKQoMJU7n7JroM9IV4gT tCEA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=rwDqWmWJ; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::531 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1680025070; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=d5MZF7ZepSmarSdm+u4xNT8eSgKRvJxAgmSQS7ndeHM=; b=m5OGwIR/g0GOV9FTMWKwaYYH8v1afwmuliFIkux5HCKkap/D5PboPm8Epbh8mlW94G VAdpxkc4q7FLOflqsr6yMRVOSmir3mRWxzIix76eY0sw6YrHZXJ8RdzhiNdHpUhqXMA4 YNoxxcUxCUa+We0eNwyeL95PXrbT2/pJOl4LrXI0cDEBPsHGCTGVIlh+Vd0R7sIIv4KT i913n7MgAdYcXy+OWY2QOQ4KQ9jl3d0M9suT+cWTAg2xz6uVvJKIMUAawZ0VL44ivp6r Wr9D8JR0hT9lfYOiVcE7Z7ad5rn8hRWYjT6T+WLjDT9C0XNgD4lQ8P5J53ab2SI1dTu1 gCiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680025070; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=d5MZF7ZepSmarSdm+u4xNT8eSgKRvJxAgmSQS7ndeHM=; b=OaF1G8ajkbfoXirFEsF7sWqLNTkgj7+GWci61yDioYrYG+5o3eZrQgbqj+kCtp0fx7 +C8bg0VNjhpwNwDnmOEBC3/iCmAoVEPXeOKx+EJ5a/dsEQYoRlLczNTVVdg7uZ0S0pbk H5oHNREbUoALVWkmyWaifmGB43kdAs0fbVhulUqpwjyY2TzReORmalWfdCs7L/loHUT5 +4m3X/lCmPSUMFtiz+ClJnAjxhk4aElYJWd5rmj1GKy6J0M3g8C9DrzO3+3fXMQb3ni4 QXtVdbwMNSoYhANdQLusLGCjVTZ0ALZYuVK8yjQJID33EOs/isv18RevqdpwNbhhBa4k X-Gm-Message-State: AAQBX9c2qUZptXFF4zJR4gzB9w/OIybUQG63kXw4IN06KDWbkdw+5I5M HWTk9nicN8Q45YNAs214ebU= X-Google-Smtp-Source: AKy350bRkRvF6f5d6SDi5lwhxjqe6uBsceJ9tBlVJic0TKMcrDCgrMqGGc8Kqxlk3mmCtV4WkFYWoA== X-Received: by 2002:a05:651c:113:b0:299:a9db:95 with SMTP id a19-20020a05651c011300b00299a9db0095mr5036537ljb.1.1680025070433; Tue, 28 Mar 2023 10:37:50 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:1585:b0:4e9:c006:ce26 with SMTP id bp5-20020a056512158500b004e9c006ce26ls182874lfb.3.-pod-prod-gmail; Tue, 28 Mar 2023 10:37:45 -0700 (PDT) X-Received: by 2002:a05:6512:3881:b0:4de:d6a1:fd71 with SMTP id n1-20020a056512388100b004ded6a1fd71mr4446857lft.50.1680025065729; Tue, 28 Mar 2023 10:37:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680025065; cv=none; d=google.com; s=arc-20160816; b=Nw59SI0CTy7OgFE/ElLQqF8MkpQhwovRUVOMD99heDbK8VBs9Dn2I90xTMGpAxjoFX aZz2xK2B3bbh8hVs2zvguvZQMD6i7FNCthPsCnsP/WvagKmCz0xZjlL+6SeRUx/GOIwO Trzq8JELkNjQhHzjt+0fUqRrOEoxZT7W2wk20eMTKTD34k3QV87ceNwvFFCg1+8HTtF1 7qPBSGRffnOTXy0eIVaDTbYU1iS8vJNYf9okrzIZNZ8FnZyGrOaYVjEAx0y0u0PqVbG2 vGGDT4M283XaPvzARKlJ0yUJ+a7wz5e1HdsqGKYGW9HRug7bdsWPPQ++wW9Jv9yLYpVZ wvkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=b0ceyIWhzlbkHMmjyLGeZX1LM1VfUrMpV/US34K6o8k=; b=WO7CeiTbV78gRZZYm2cucpvZlOYSrwwHMyYrxvjUL+hrpFktbkwCOjOlz87iGKMRv3 yvcz9LhZtuRqPj3kdvr7/0S+XXwFLmwx/M7lfdrvUmlHByYExNr7SAKugN87y9QRBWYw RqeRDoSmPbtirGzqbJuSHpcrUGzgn8kzmFfhE2wj+H3csQX0J0tnys//kj5pVPrOlchX R0Tkse5SQ9VuuUZ/sFsZ4KO/42KY3TqS9Jx3HLDWQjFu3U1IMQf/bZZmiE9pzAMFLYvb IJRDtD14tyenhdIiqxSAhxg4HyqKaeyqxkYKCj+7YXregopOd/2/7PRzHFHK4STdwM0e jITw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=rwDqWmWJ; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::531 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org Original-Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com. [2a00:1450:4864:20::531]) by gmr-mx.google.com with ESMTPS id j10-20020a056512108a00b004dd848ec0ecsi1445557lfg.10.2023.03.28.10.37.45 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Mar 2023 10:37:45 -0700 (PDT) Received-SPF: pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::531 as permitted sender) client-ip=2a00:1450:4864:20::531; Original-Received: by mail-ed1-x531.google.com with SMTP id eh3so52811735edb.11 for ; Tue, 28 Mar 2023 10:37:45 -0700 (PDT) X-Received: by 2002:a17:906:bc94:b0:8e6:266c:c75e with SMTP id lv20-20020a170906bc9400b008e6266cc75emr8571338ejb.14.1680025064948; Tue, 28 Mar 2023 10:37:44 -0700 (PDT) X-Original-Sender: wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=rwDqWmWJ; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::531 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org X-Original-From: William Lupton 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:32414 Archived-At: --00000000000035de6a05f7f9513d Content-Type: text/plain; charset="UTF-8" Hello, I'm generating PDF using wkhtmltopdf, so "to" is "html" and I don't see the PDF engine in any of the globals. Should I just look at the output file name? Thanks, William PS, My filter adds some JavaScript to header-includes. I'm doing this as a RawBlock(html) but I think I need to omit it when the HTML will be converted to PDF (wkhtmltopdf complains). -- 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/CAEe_xxhU3eFmbb-XT640STjhrhbeWd75SkRf_ggYYZ3Gx1E79Q%40mail.gmail.com. --00000000000035de6a05f7f9513d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I'm generating PDF using= =C2=A0wkhtmltopdf, so "to" is "html" and I don't se= e the PDF engine in any of the=C2=A0globals. Should I just look at the outp= ut file name?

Thanks,
William
=
PS, My filter adds some JavaScript to header-includes. I'= ;m doing this as a RawBlock(html) but I think I need to omit it when the HT= ML will be converted to PDF (wkhtmltopdf complains).

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.= google.com/d/msgid/pandoc-discuss/CAEe_xxhU3eFmbb-XT640STjhrhbeWd75SkRf_ggY= YZ3Gx1E79Q%40mail.gmail.com.
--00000000000035de6a05f7f9513d--