Skip to content

Support for Image with link #77

@BaoBao0406

Description

@BaoBao0406

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!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions