You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am following the documentation to convert md file to pdf using below code, I am using python 3.6 on windows. I encounter below error to select a different --pdf-engine or install pdflatex\r\n'.
I do not want to install other dependency, Please assist. Thanks
Traceback (most recent call last):
File "C:/Users/star/Desktop/pdf_report/pypan.py", line 16, in
output = pypandoc.convert(input, 'pdf', outputfile='demo.pdf')
File "C:\Users\star\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pypandoc_init_.py", line 69, in convert
outputfile=outputfile, filters=filters)
File "C:\Users\star\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pypandoc_init_.py", line 325, in _convert_input
'Pandoc died with exitcode "%s" during conversion: %s' % (p.returncode, stderr)
RuntimeError: Pandoc died with exitcode "47" during conversion: b'pdflatex not found. Please select a different --pdf-engine or install pdflatex\r\n'
The text was updated successfully, but these errors were encountered:
@starhh Does it work with extra_args=['-V geometry:margin=1.5cm', '--pdf-engine=xelatex'] or extra_args=['-V geometry:margin=1.5cm', '--pdf-engine=/usr/bin/xelatex'] (or wherever your xelatex is installed)?
jankatins
changed the title
Pandoc died with exitcode "47"
make sure pypandoc works with latex engines other than pdflatex
Apr 29, 2018
You need to separate the parameters, so: extra_args=['-V geometry:margin=1.5cm', '--pdf-engine=/usr/bin/xelatex']
becomes: extra_args=['-V', 'geometry:margin=1.5cm', '--pdf-engine', '/usr/bin/xelatex']
I am using downlaod_pandoc(), but there is no method provided to download pdf-engine. Pandoc died with exitcode "41" during conversion: pandoc: pdflatex not found. pdflatex is needed for pdf output.
Hi,
I am following the documentation to convert md file to pdf using below code, I am using python 3.6 on windows. I encounter below error to select a different --pdf-engine or install pdflatex\r\n'.
I do not want to install other dependency, Please assist. Thanks
output = pypandoc.convert(input, 'pdf', outputfile='paper.pdf', extra_args=['-V geometry:margin=1.5cm'])
Traceback (most recent call last):
File "C:/Users/star/Desktop/pdf_report/pypan.py", line 16, in
output = pypandoc.convert(input, 'pdf', outputfile='demo.pdf')
File "C:\Users\star\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pypandoc_init_.py", line 69, in convert
outputfile=outputfile, filters=filters)
File "C:\Users\star\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pypandoc_init_.py", line 325, in _convert_input
'Pandoc died with exitcode "%s" during conversion: %s' % (p.returncode, stderr)
RuntimeError: Pandoc died with exitcode "47" during conversion: b'pdflatex not found. Please select a different --pdf-engine or install pdflatex\r\n'
The text was updated successfully, but these errors were encountered: