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-/JYPxA39Uh5TLH3MbocFFw@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.

--
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-/JYPxA39Uh5TLH3MbocFFw@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.