X
X
xenofobius2017-02-22 16:52:24
Python
xenofobius, 2017-02-22 16:52:24

How to find out after which paragraph an image (inline_shapes) is inserted using pychon-docx?

I did not find a way to iterate over all the objects in the document, how do I find out after which paragraph the image is located? I find pictures like this:

for img in document.inline_shapes:
  print(img)

Is there any way to find the position of an image using this lib? Or somehow loop through all the elements of the document (paragrapsh, inline_shapes..)?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question