我有一个.docx格式的Word骨架文档,其中包括我的签名图像。我想使用Python更新文档。这很有效,但当我这样做时,签名图像会消失。如何从文件中读取图像,然后将其插入某个位置?我试过了
from docx import Document
doc = Document('test.docx')
inline_shapes = doc.inline_shapes
for inline_shape in inline_shapes:
....
但是inline_shapes是空的。
我使用的是python docx版本“0.8.11”。