I am using python-docx to convert a Word docx to a custom HTML equivalent. The document that I need to convert has images and tables, but I haven\'t been able
Assuming doc is of type Document, then what you want to do is have 3 separate iterations:
doc.tablesdoc.inline_shapesThe reason your code wasn't working was that paragraphs don't have references to the tables and or shapes within the document, as that is stored within the Document object.
Here is the documentation for more info: python-docx