I have an .ai image with 3 layers in it. Screenshot attached below. I need to capture coordinates (X,Y,width,height) of all elements or objects falling inside Header,Body, footer layers:
For e.g. the "Body layer" from above screenshot should return following information:
|Content||Coordinates of each object||Scaling factor|
|4 G||width-height-top-left of "4 G"||30%|
|5 J||width-height-top-left of "5 J"||10%|
|6 M||width-height-top-left of "6 M"||35%|
|Body||width-height-top-left of "Body"||40%|
I would be provided start and end pixel position of each section/layer configured in my system from before. For e.g. header would start from 0,0 px and end at 1240, 188 px.
I then plan to find this layer position in my code and fetch all the elements/objects falling inside this layer. My problem is I am not getting Top , Left properties inside Adobe "layer" class which provides me with this information. See screenshot below:
How do I retrieve the scaling factor of each object in code? I could get opacity, Resolution properties, but nothing on Scaling !!! Please help
Note: I am using "Adobe Illustrator 18 Type Library" in my .Net 4.0 code.