Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem converting .docx files with images to HTML #237

Open
wyler0 opened this issue Mar 11, 2017 · 2 comments
Open

Problem converting .docx files with images to HTML #237

wyler0 opened this issue Mar 11, 2017 · 2 comments

Comments

@wyler0
Copy link

wyler0 commented Mar 11, 2017

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.

@wyler0 wyler0 changed the title Problem with .to_html for docx files with images Problem converting .docx files with images to HTML Mar 11, 2017
@botzill
Copy link
Contributor

botzill commented Apr 22, 2017

Hi @wyler0, can you upload a version of the .docx file you are testing with ?

@wyler0
Copy link
Author

wyler0 commented Apr 24, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants