Hi,
I use mammoth to convert a Word document with a image, and the Image has a hyperlink. After I convert to HTML file, the link did not appear in the Image. Please see the below for my code.
import mammoth
with open('EmailTemplate1.docx', 'rb') as docx_file:
result = mammoth.convert_to_html(docx_file)
html = result.value
with open('Template1.html', 'w') as file1:
file1.write(html)
Could mammoth convert the hyperlink for a image?
Please let me know if i miss something. Thank you so much!
Hi, I use mammoth to convert a Word document with a image, and the Image has a hyperlink. After I convert to HTML file, the link did not appear in the Image. Please see the below for my code.
import mammoth
with open('EmailTemplate1.docx', 'rb') as docx_file: result = mammoth.convert_to_html(docx_file) html = result.value
with open('Template1.html', 'w') as file1: file1.write(html)
Could mammoth convert the hyperlink for a image? Please let me know if i miss something. Thank you so much!