* wkhtmltopdf options @ 2022-09-21 14:55 jlr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [not found] ` <90439113-3c05-40bf-8748-6363d4178f76n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: jlr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org @ 2022-09-21 14:55 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 745 bytes --] Hello! I'd like to print the page number on the PDF pages when processing with wkthmltopdf. I tried the command line pandoc -o filename.pdf --pdf-engine wkhtmltopdf -c pandoc.css filename.md --pdf-engine-opt=--footer-center [page] on Win10 cmd line, without success. How do I pass options to the wkhtmltopdf engine? Cheers! -- 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/90439113-3c05-40bf-8748-6363d4178f76n%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 1157 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <90439113-3c05-40bf-8748-6363d4178f76n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: wkhtmltopdf options [not found] ` <90439113-3c05-40bf-8748-6363d4178f76n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2022-09-21 15:17 ` William Lupton [not found] ` <CAEe_xxjr6GO3hwffXP=_0=idFOETtW4O0CicKiQXB0t-ZzNMrA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: William Lupton @ 2022-09-21 15:17 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 1937 bytes --] I think you have to use a separate --pdf-engine-opt for each word, e.g., this works for me on my Mac: pandoc -o simple.pdf --pdf-engine wkhtmltopdf simple.md --pdf-engine-opt=--footer-center --pdf-engine-opt=[page] PS, You might hope that this would work, but I guess wkhtmltopdf doesn't support equals signs between the option name and its value. pandoc -o simple.pdf --pdf-engine wkhtmltopdf simple.md --pdf-engine-opt=--footer-center=[page] On Wed, 21 Sept 2022 at 15:55, jlr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <jlrn77-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Hello! > > I'd like to print the page number on the PDF pages when processing with > wkthmltopdf. I tried the command line > > pandoc -o filename.pdf --pdf-engine wkhtmltopdf -c pandoc.css > filename.md --pdf-engine-opt=--footer-center [page] > > on Win10 cmd line, without success. How do I pass options to the > wkhtmltopdf engine? > > Cheers! > > > -- > 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/90439113-3c05-40bf-8748-6363d4178f76n%40googlegroups.com > <https://groups.google.com/d/msgid/pandoc-discuss/90439113-3c05-40bf-8748-6363d4178f76n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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_xxjr6GO3hwffXP%3D_0%3DidFOETtW4O0CicKiQXB0t-ZzNMrA%40mail.gmail.com. [-- Attachment #2: Type: text/html, Size: 2923 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <CAEe_xxjr6GO3hwffXP=_0=idFOETtW4O0CicKiQXB0t-ZzNMrA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: wkhtmltopdf options [not found] ` <CAEe_xxjr6GO3hwffXP=_0=idFOETtW4O0CicKiQXB0t-ZzNMrA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2022-09-21 20:25 ` Luis Rivera 0 siblings, 0 replies; 3+ messages in thread From: Luis Rivera @ 2022-09-21 20:25 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Il giorno mer 21 set 2022 alle ore 10:17 William Lupton <wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org> ha scritto: > > I think you have to use a separate --pdf-engine-opt for each word, e.g., this works for me on my Mac: > > pandoc -o simple.pdf --pdf-engine wkhtmltopdf simple.md --pdf-engine-opt=--footer-center --pdf-engine-opt=[page] > Indeed, this is the case: I arrived at the same conclusion after examining the output of pandoc --verbose -o simple.pdf --pdf-engine wkhtmltopdf simple.md --pdf-engine-opt=--footer-center --pdf-engine-opt=[page] before reading your reply, which in fact served as confirmation from a Mac user. > PS, You might hope that this would work, but I guess wkhtmltopdf doesn't support equals signs between the option name and its value. > > pandoc -o simple.pdf --pdf-engine wkhtmltopdf simple.md --pdf-engine-opt=--footer-center=[page] > Again, indeed, this is the case. I suggest putting this information right in the corresponding place in the user's manual. Cheers! ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-09-21 20:25 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-09-21 14:55 wkhtmltopdf options jlr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [not found] ` <90439113-3c05-40bf-8748-6363d4178f76n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2022-09-21 15:17 ` William Lupton [not found] ` <CAEe_xxjr6GO3hwffXP=_0=idFOETtW4O0CicKiQXB0t-ZzNMrA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2022-09-21 20:25 ` Luis Rivera
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).