shapes.png (22.8 KB)
How to extract those shapes( drawn using insert->shapes) in ppt. They aren’t being identified as shape object.:
shapes_code.png (11.9 KB)
shapes.png (22.8 KB)
How to extract those shapes( drawn using insert->shapes) in ppt. They aren’t being identified as shape object.:
shapes_code.png (11.9 KB)
@jwala.vaishnavi2412,
Thank you for posting the question.
Could you please describe your goal in more detail? The slide in the screenshot contains various AutoShape objects. What exactly do you want to do with them?
I need shape coordinates.
@jwala.vaishnavi2412,
You can read properties from the Shape objects and get the coordinates of the shapes like this:
import aspose.slides as slides
with slides.Presentation("sample.pptx") as presentation:
for slide in presentation.slides:
for shape in slide.shapes:
print("Shape name:", shape.name)
print("X:", shape.x)
print("Y:", shape.y)
print("Width:", shape.width)
print("Height:", shape.height)
print()