Questions tagged [pypandoc]

46 questions
0
votes
0 answers

RuntimeError: Pandoc died with exitcode "47" during conversion: pdflatex not found. Please select a different --pdf-engine or install pdflatex`

I want to convert my word .docx file to pdf using Python. import os import pypandoc from django.http import FileResponse newdir = os.path.abspath(os.path.join(os.path.dirname(__file__))) if not os.path.exists(newdir): …
ninjacode
  • 318
  • 2
  • 18
0
votes
2 answers

Cannot add image from docx file to html file using pypandoc

I am trying to convert a docx file to html file using pypandoc package in python. Here's my code(removed the file paths) - import pypandoc filename =…
0
votes
1 answer

pypandoc html to md table

I'm trying to use pypandoc to translate HTML into md markdown (for use with Hugo). The following barebones table: …
Francis
  • 563
  • 1
  • 7
  • 14
0
votes
1 answer

PyPandoc including hypertargets when converting from html to latex

i have been trying to convert the HTML string question_text_html(which is a mathematical question written in HTML ) in the code below to a latex string using pypandoc. but it keeps including the irrelevant strings like…
msughter
  • 11
  • 1
  • 3
0
votes
1 answer

using pandoc to generate pdf for Heroku

On my Django site I have a button that will create a word document and covert it into pdf file to show it to the user in a new window. Now this is done by reading a word document using docx and then docx2pdf to make the conversation. My problem is…
kitchen800
  • 197
  • 1
  • 12
  • 36
0
votes
1 answer

Not able to read file in Pypandoc

I am trying to covert a pdf to html using Pandoc. I have installed pandoc binary , added the environment variable path and then using import pypandoc import os os.environ.setdefault('PYPANDOC_PANDOC', 'C://Program…
SUBHRA SANKHA
  • 118
  • 1
  • 2
  • 11
0
votes
1 answer

Running a python script on server - works through command line but not through browser as user apache

Specifically getting this error: WARNING: Cannot find unidecode lib. Expect issues with index sorting lstat(./kpsewhich) failed: ./kpsewhich: No such file or directory kpathsea: Can't get directory of program name: ./kpsewhich Traceback (most recent…
Keshav Chawla
  • 13
  • 1
  • 4
0
votes
1 answer

pyPandoc md to html conversion lose code-block style

I'm trying to convert a string with markdown formatting into an html text = """ # To be approved This is a markdown editor, Type here your article body and use the tools or markdown code to style it. If you need help or you want to know more about…
Fabio Magarelli
  • 1,031
  • 4
  • 14
  • 47
0
votes
0 answers

pandoc generate InvalidUrlException when the link contains full path file

Pandoc is a great tool to transform files from one format to another. Among all the diverse functions it provides, one interesting function is to generate self-contained portable HTML file. This function is very useful when you want to share your…
feelfree
  • 11,175
  • 20
  • 96
  • 167
0
votes
1 answer

How to run libraries as a docker container service?

I wanted to use PyPandoc as a service (In Docker container). I installed "docker pull msabramo/pypandoc". It creates an image but I don't know how to use it (input to Docker container and get output). What am I supposed to type from there?
0
votes
0 answers

Pandoc converter : standalone : convert to PDF

I want to know how to use Pandoc in standalone command line manner, to convert existing Excel reports in .xlsx format to PDF. Hard to find examples on this. And wondering if it has API interface with Python, to be able to embed this in Python.
Palu
  • 668
  • 3
  • 11
  • 26
0
votes
1 answer

Pypandoc not accepting yml input

I am able to compile an invoice with the following command: pandoc details.yml -o output.pdf --template=invoice.tex --latex-engine=xelatex But when I write the same thing in Python, I get an error complaning about the input format: >>>…
Casper Lehmann
  • 475
  • 2
  • 13
0
votes
1 answer

Problems with call to pandoc in python. Providing "-V args" are not working

When I call to pandoc with "-V args" like for example: '-V title="Wartość"' in Python script, I get output without title..:( Example: Manually typed command to pandoca(in terminal): /usr/bin/pandoc /home/user/program/content.md -V title="Wartość"…
ffg
  • 13
  • 1
  • 5
-1
votes
2 answers

i want to replace ‘ and ’ with ' in html using python. i tried multiple ways but failed

I wrote a code that converts a Word document to HTML using pypandoc because I even want images in that. The problem is my docx file contains characters ‘ and ’ which turn into something different in HTML when sent as a mail body. I want ‘ and ’ to…
-1
votes
1 answer

pypandoc giving the error “RuntimeError: source_file is not a valid path

My Code: Error: $ C:/Users/abc/AppData/Local/Programs/Python/Python38-32/python.exe e:/PYTHON/pdf_word_converter.py Traceback (most recent call last): File "e:/PYTHON/pdf_word_converter.py", line 4, in conout =…
Suchit SD
  • 1
  • 1
Case ID