Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for run in runs: # however you decide to get the runs
- r = run._element # this is the `<w:r>` XML element for the run
- pics = r.xpath('.//w:drawing/wp:inline/a:graphic/a:graphicData/pic:pic')
- if not pics:
- break
- print(r.xml) # if you want to see the XML for this run
Add Comment
Please, Sign In to add comment