From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33000 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: yujie zhang Newsgroups: gmane.text.pandoc Subject: When passing the "footer-html" parameter to wkhtmltopdf, an error occurs: HostNotFoundError. Date: Fri, 28 Jul 2023 08:52:02 -0700 (PDT) Message-ID: <6ddb5148-3ebd-4660-b66e-446173fb4e6an@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_13334_1328100107.1690559522050" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30140"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCB4VM7TTIDBBI6IR6TAMGQEAYM7WOQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jul 28 17:52:06 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f58.google.com ([209.85.161.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qPPl8-0007Ym-Gu for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 28 Jul 2023 17:52:06 +0200 Original-Received: by mail-oo1-f58.google.com with SMTP id 006d021491bc7-5634c4df8c4sf3598568eaf.1 for ; Fri, 28 Jul 2023 08:52:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1690559525; x=1691164325; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=902unfVcPXUeVVqu4pRUQLJi1fEYPoS0GSrcbRFPXv4=; b=CZDK7IsAXgZLLgzl3sVlZZIm4r0TDFAi6KAvMSTxBMRyeCyjbHaxLiOY4WY/Tkd/IX Hy9oPDxWgHZVLoEdkEOqS646a1IFXYrShmzng3kqjPnRX1Bg/+hmEB6qOulYwf4wB5wy kWXk2lG9FRbEWBF3Ia9TsZa2EpbEAdUYqMsoUGlwHantdSSO1tTf8j8u4vBHUMk9LjqX 9qZvFJZ1MksIj64yEYFAve8VB2gAvisUjxDK4GwYKgVQqYMFm1i7++G87oHkZcjUIARp Gn8F2ux663sHL71Yg7gBSTzIXkpLAbvgVhJBkZXhjyKhxm71qJykVsNeYX79ny8tlk7U 37uA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690559525; x=1691164325; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=902unfVcPXUeVVqu4pRUQLJi1fEYPoS0GSrcbRFPXv4=; b=Q4FjThNZgguRCKiLgAejk3htSqq5MHvQErhK6NEAWiEC6rQrfbQmrZX3FA1AoQaKLk EWaVNx68fWO/pfLEbFm5f0ARiXpsIzOF/aPCIZDV/eySVxXevjD/dX493UZNzeWKTRuK 9UUExqwBUzq9HJYPr6blbYed0Fi51WrB5bc8VnPQaRaHPSc5llqhPHKyKvr7/3FCV/16 xk2/8EGfcY4Y19KZ1YEpcGOX+e4C4q7MKrrD4/CW53YXC/I6nS5UqhoBd25Ylw2ZiCD8 mHnUHyAj/vuFszqCtEsYzsfj75wRB2IRrVOqmbVR19u8odMibyp1Zipy0zpR5PfFiqoy sMtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690559525; x=1691164325; 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-sender:mime-version:subject:message-id:to:from:date :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=902unfVcPXUeVVqu4pRUQLJi1fEYPoS0GSrcbRFPXv4=; b=Pk3iZEI/2VxZwudss9mZwrXytxaSLlJT/2Q0Bw+6NHPvb35bOFZmv5s2imMTxxRIqV rjEVY0BBY9ZWWujktzw7BdVofYyhztgLmRxEtzTRW0NspLIrX2b8KPXgQTh9jBBpuywC Vsi8uT/Bc1XXXB2QhLW+w8Qh/wguyOt5ZY/gV3fRbv4HKLQx4Tjo72SXuykFvs8tqUrE 1Paap+2LHwWAxnsGICokYFC6rI2R7iyMZgYnrrp2m49yjJQSLyL9H3uh2vNDG8+ZXEP7 0WPQ2ue7g4+dix0B+0i4N1zFxeTh1LJauu2Qe2tQh9IF1D4Fmjw71Fsj9bJ95+LMhi4q Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ABy/qLZ2PTDKC2MPU2qZc8/ABWaXKUnfII3DqjUEOcqAfNoWQm4ZwyOI WMsBfI8p3vYR4OYs/ZcVGXg= X-Google-Smtp-Source: APBJJlH08rAtzyej8Emzpb3i4Z1qNKe916q8aSNVoXHJks0WFIC4Y+CICGPe2mFVMi6lK3pSC16KlA== X-Received: by 2002:a05:6870:c8a6:b0:1ba:d0f3:a3be with SMTP id er38-20020a056870c8a600b001bad0f3a3bemr3573623oab.49.1690559525443; Fri, 28 Jul 2023 08:52:05 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:6489:b0:1bb:933b:e6ba with SMTP id cz9-20020a056870648900b001bb933be6bals176355oab.0.-pod-prod-07-us; Fri, 28 Jul 2023 08:52:02 -0700 (PDT) X-Received: by 2002:a05:6830:12c1:b0:6b9:a422:9f with SMTP id a1-20020a05683012c100b006b9a422009fmr3352586otq.1.1690559522587; Fri, 28 Jul 2023 08:52:02 -0700 (PDT) X-Original-Sender: yujiezhang017-Re5JQEeQqe8AvxtiuMwx3w@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:33000 Archived-At: ------=_Part_13334_1328100107.1690559522050 Content-Type: multipart/alternative; boundary="----=_Part_13335_1697213904.1690559522050" ------=_Part_13335_1697213904.1690559522050 Content-Type: text/plain; charset="UTF-8" I am using the PDF engine wkhtmltopdf to convert a given markdown file to PDF. When I use --pdf-engine-opt to pass the parameter "footer-html" to wkhtmltopdf, I always encounter the following error, regardless of whether I include the --enable-local-file-access option or not: [image: image] My pandoc command line is as follows, and the input.md file, convert.css file, header.html file, and footer.html file involved are all in the same directory as pandoc.exe on the local machine. pandoc --pdf-engine=wkhtmltopdf -s --css=convert.css -f markdown -t pdf --pdf-engine-opt="--enable-local-file-access" --include-in-header=header.html --variable=margin-top=0in --variable=margin-bottom=0.333in --variable=margin-left=0in --variable=margin-right=0in --dpi=200 input.md -o test.pdf --pdf-engine-opt="footer-html footer.html" *Pandoc version: *3.1.6 Also, does anyone know how to add a page number and footer to each generated page of the PDF using the wkhtmltopdf engine? -- 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/6ddb5148-3ebd-4660-b66e-446173fb4e6an%40googlegroups.com. ------=_Part_13335_1697213904.1690559522050 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

I am u= sing the PDF engine wkhtmltopdf to convert a given markdown file to PDF. Wh= en I use --pdf-engine-opt to pass the parameter "footer-html" to wkhtmltopd= f, I always encounter the following error, regardless of whether I include = the --enable-local-file-access option or not:
3D"image"

My pandoc command line is as fo= llows, and the input.md file, convert.css file, header.html file, and foote= r.html file involved are all in the same directory as pandoc.exe on the loc= al machine.
pandoc --pdf-engine=3Dwkhtmltopdf -s --css=3Dconvert= .css -f markdown -t pdf --pdf-engine-opt=3D"--enable-local-file-access" --i= nclude-in-header=3Dheader.html --variable=3Dmargin-top=3D0in --variable=3Dm= argin-bottom=3D0.333in --variable=3Dmargin-left=3D0in --variable=3Dmargin-r= ight=3D0in --dpi=3D200 input.md -o test.pdf --pdf-engine-opt=3D"footer-html= footer.html"
Pandoc version:=C2=A03.1.6


Also, does anyon= e know how to add a page number and footer to each generated page of the PD= F using the wkhtmltopdf engine?

--
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/6ddb5148-3ebd-4660-b66e-446173fb4e6an%40googlegroups.= com.
------=_Part_13335_1697213904.1690559522050-- ------=_Part_13334_1328100107.1690559522050--