Hello,
We are using Aspose Slides for java version 17.3.
To distinguish the shapes within a slide in ppt we use shape Id. In our Authoring clients we use Microsoft’s Shape.Id Property (PowerPoint) as shown in the link: https://docs.microsoft.com/en-us/office/vba/api/PowerPoint.Shape.Id
However, when we construct the Presentation object of the pptx file using Apose Slides, the shape Id is not the same as was set by the Microsoft API.
For example, in the attached pptx file - for the shape named “VideoShape”, Shape.Id property set by Microsoft is “4” whereas the shape id provide by Aspose for the same shape is “2”.
Following is the code snippet being used to get the shape Id:
Presentation presentation = new Presentation(“C:/temp/ShapeIdIssue.pptx”);
IShapeCollection iShapeCollection = presentation.getSlideById(256).getShapes();
for (int i = 0; i < iShapeCollection.size(); i++) {
long id =iShapeCollection.get_Item(i).getUniqueId();
String name =iShapeCollection.get_Item(i).getName();
System.out.println(id+ " " +name);
}
Please let me know how I can get the shape Id property set by Microsoft using Aspose library.
Thanks,
Neeraj