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

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