I have downloaded https://hea-www.harvard.edu/~fine/Tech/vi.html file using wget -p -k https://hea-www.harvard.edu/~fine/Tech/vi.html then run pandoc --latex-engine=xelatex -o vi.pdf vi.html this produce -
pandoc: Error producing PDF from TeX source.
! LaTeX Error: Cannot determine size of graphic in ../images/vi.gif (no Boundin
gBox).
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.884 ...html}{\includegraphics{../images/vi.gif}}
And when I use pdflatex(default latex-engine in pandoc) by using pandoc -o vi.pdf vi.html this produce -
pandoc: Error producing PDF from TeX source.
! LaTeX Error: Unknown graphics extension: .gif.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.884 ...html}{\includegraphics{../images/vi.gif}}
I also use wkhtmltopdf https://hea-www.harvard.edu/~fine/Tech/vi.html to make pdf from weblink. But, in wkhtmltopdf solution I have no control over the background color. I want to make a black and white pdf.


--pdf-engine-opt=-shell-escape– DG' Feb 15 '18 at 12:59--include-in-header=FILE– DG' Feb 16 '18 at 10:19