Questions tagged [mammoth]

35 questions
0
votes
0 answers

converting docx file to html python3

I have try to convert docx file to html file. But could not convert to extract design,tables, image and etc.. My code: import mammoth doc_file = open('source_file.docx', "rb") html_file = open(output_file.html,'wb') result =…
Sankar guru
  • 935
  • 1
  • 7
  • 16
0
votes
2 answers

Why am I getting no such file error when using "mammoth" to convert a simple .docx file?

My code is as below. The contents of the file is a simple "hello world" I have the hello.docx file in the same folder I am calling this mammoth function. Error result: fatal Error: ENOENT: no such file or directory, open './hello.docx' Any idea…
rio
  • 116
  • 15
0
votes
1 answer

Converting DOCX to Markdown fails to place image

I am trying to use Mammoth to convert a DOCX file with images to Markdown format: mammoth git.docx --output-format=markdown > git.md When I push the git.md to github and checked it. It shows no images When I open git.md in text editor the following…
Santhosh
  • 9,965
  • 20
  • 103
  • 243
0
votes
1 answer

How do I retrieve data from a Promise

I am attempting to use the Mammoth Node.js package to convert a file from Docx to HTML. The Mammoth Readme suggests the following format for converting the file: var mammoth = require("mammoth"); mammoth.convertToHtml({path:…
0
votes
0 answers

Cannot bring all the element from html to docx that have same tag with java

I have a project converting from html to docx with java, in the html document I have 2 paragraph with 2 header as a title, but when converting both of them to docx format, just one paragraph that successfully converted, but the other paragraph…
1 2
3