python docx how to read text along with inline images?
<p>I have a simple docx file <a href="http://pan.baidu.com/s/1mieqg2k" rel="nofollow noreferrer">like this</a>(just insert a inline png file to text):<a href="https://i.stack.imgur.com/bJQTp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bJQTp.png" alt="enter image description here"></a></p>

<p>I've tried:</p>

<pre><code>&gt;&gt;&gt; x=docx.Document('12.docx')
&gt;&gt;&gt; for p in x.paragraphs:
    print(p.text)


headend
&gt;&gt;&gt; list(x.inline_shapes)
[]
</code></pre>

<p>And I unzip <code>12.docx</code> file, found <code>word/media/image1.png</code> is the location. So is there a way to get a output like:</p>

<pre><code>&gt;&gt;&gt; for p in x.paragraphs:
    print(p.text_with_image_info)


head&lt;word/media/image1.png&gt;end
</code></pre>