Skip to content

Problem converting .docx files with images to HTML #237

Open
@wyler0

Description

@wyler0

Hi pydocx team,
Recently I was attempting to add images to a docx file via python-docx then convert the document to html on Python 3.6.0 with PyDocX version 0.9.10.
I am able to convert documents without images to HTML without any issue.

The problem arises if I add an image to the document using python-docx, save the document, then use
print(PyDocX.to_html(directory+'hey.docx')
to print and convert the file to HTML.
After executing the print command the program freezes and I must use control+c to escape.

I then tried to run the .to_html on a .docx file with just a single image and no other elements and the same behavior occurred.

From my testing it seems your function has some sort of error in it, however I may be wrong.
If you need any more information please let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions