Closed vignesh0710 closed 6 months ago
A shape can be a group shape which can contain other shapes.
So you need to recursively descend into group shapes (which can be nested multiple layers deep).
Have a Google on "python-pptx traverse group shapes" and you should find what you need, this one for example: https://stackoverflow.com/questions/51701626/how-to-extract-text-from-a-text-shape-within-a-group-shape-in-powerpoint-using
I am trying to use
python-pptx
to extract all the text in a given slide.code:
But it is missing some text, but when I try to
print
the contents of the slide fromslide._element
I can see themissing text
in thexml
Any suggestions will be helpful