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?
Here is an example where there is nothing wrong with the boxes:
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
andshape.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?
Here is an example where there is nothing wrong with the boxes: