Skip to content

Support for Image with link #77

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions