There are three shapes in the file below, the position of the text is different.
For example, the first text is under the shape, The second text is on top of the shape
So how to get the text position of these shapes?
test1.zip (121.4 KB)
There are three shapes in the file below, the position of the text is different.
For example, the first text is under the shape, The second text is on top of the shape
So how to get the text position of these shapes?
test1.zip (121.4 KB)
I am use Java
Please use following code snippet to achieve your requirements:
com.aspose.diagram.Diagram diagram = new com.aspose.diagram.Diagram(dataDir + "");
for (com.aspose.diagram.Page page:(Iterable<com.aspose.diagram.Page>) diagram.getPages()) {
for(com.aspose.diagram.Shape shape:(Iterable<com.aspose.diagram.Shape>) page.getShapes()){
double xpin = shape.getTextXForm().getTxtPinX().getValue();
double ypin = shape.getTextXForm().getTxtPinY().getValue();
}
}
thank you, it is very helpful to me