python-pptx icon indicating copy to clipboard operation
python-pptx copied to clipboard

Bounding boxes are wrongly parsed when shapes are inside a GroupShape

Open louisdeneve opened this issue 3 years ago • 1 comments

I'm trying to make a pptx parser script that gives bounding boxes around every part of the slide and label it (Text, Title, List, Table, Figure...). To check my output I draw the boxes on the images of the slide. However I'm seeing a strange behaviour when Shapes are inside of a GroupShape. Do you need to add the shape.left and shape.top of a GroupShape to every Shape inside a GroupShape?

Here you can see a visualization of my output. As you can see, the title box and footer are perfectly alligned. But the GroupShape in the middle seems shifted and I can't figure out where this is coming from. Someone that has a clue? unnamed

Here is an example where there is nothing wrong with the boxes: unnamed

louisdeneve avatar Aug 12 '22 12:08 louisdeneve

#925 try this

Force1ess avatar Aug 19 '24 04:08 Force1ess