I am trying to convert all the php files that can be found inside a directory to pdf.
I am trying to use pandoc, but I am not able to find the correct option for the correct convertion.
When I do
for file in *.php; do pandoc "$file" -o "$file.pdf"; done
I get a lot of execution errors and it suggests to use pandoc with the option
--latex-engine=xelatex
When I use this option, there is no execution error, but the document does not reflect exactly the original document.
Is it possible to do that using pandoc? Otherwise, is there another way to do that?