Hi Support,
If the shape is aligned to the right margin of the page, the value of the "Left" property is equal to 0.
I attached a simple example that you can see this issue:
First shape with correct value.
Second shape with wrong value.
Br,
Hi Andrea,
LayoutCollector collector = new LayoutCollector(doc);
LayoutEnumerator enumerator = new LayoutEnumerator(doc);
NodeCollection shapes = doc.GetChildNodes(NodeType.Shape, true);
int imageIndex = 0;
foreach (Shape shape in shapes)
{
if (shape.HasImage)
{
enumerator.Current = collector.GetEntity(shape);
Console.WriteLine("Shape " + imageIndex + " - Left property value: " + enumerator.Rectangle.Left);
imageIndex++;
}
}