I'm not familiar with pandoc, but looking at its website it states the following for PDF conversion:
→ via pdflatex, lualatex, xelatex, latexmk, tectonic, wkhtmltopdf, weasyprint, prince, pagedjs-cli, context, or pdfroff.
Of these, the only one I can see in the repositories is wkhtmltopdf
. Whether that supports your use case though I don't know. I also don't know whether pandoc would be able to support a different pdf converter platform to those listed.