Ferass Elrayes
2008-03-14 13:59:00 UTC
Hello everyone,
I am working on a project that requires me to calculate the exact position
of shapes on a page (absolute position from the top left corner of the page).
Initially, I tried selecting the shape and using the get_information method
to retrieve this information but found that this returns the positon of the
anchor.
I couldn't establish a relation between that anchor and the top left corner
of the image.
I have a specific case when the anchor appears on the bottom left corner of
the image, the vertical positoning is 0 pt from the paragraph and horizontal
positioning is 0 pt from a column. In another case the anchor appears in the
top left corner of the image with the same parameters.
What are the factors affecting the positioning of the anchor?
Is there a reliable way to always obtain the absolute positon of the top
left corner of a shape?
Your help is much appreciated.
I am working on a project that requires me to calculate the exact position
of shapes on a page (absolute position from the top left corner of the page).
Initially, I tried selecting the shape and using the get_information method
to retrieve this information but found that this returns the positon of the
anchor.
I couldn't establish a relation between that anchor and the top left corner
of the image.
I have a specific case when the anchor appears on the bottom left corner of
the image, the vertical positoning is 0 pt from the paragraph and horizontal
positioning is 0 pt from a column. In another case the anchor appears in the
top left corner of the image with the same parameters.
What are the factors affecting the positioning of the anchor?
Is there a reliable way to always obtain the absolute positon of the top
left corner of a shape?
Your help is much appreciated.