With the exception of Drawing Objects there is no provision in Word to link a graphic object to the relative size of a page. So it will need to be calculated.
The page size can be ascertained from the document's Word Open XML. The information is in the <w:pgSz>
attributes w:w
(width) and w:h
(height). The measurements are in twentieths of a point.
The relevant segment of Word XML: the XML definition of the last section of the document, just before the </w:body>
element, is below. Note that a document can have varying page sizes for each section. This can be seen if an envelope is attached to a document, for example. Or if landscape and portrait is mixed, then the width and height measurements will reverse (although the actual page size is the same). If that could happen, then it would be necessary to pick up all section breaks. These would be attached to a w:p
tag.
<w:sectPr w:rsidR="00000000" w:rsidRPr="00154F24">
<w:pgSz w:w="11906" w:h="16838"/>
<w:pgMar w:top="1417" w:right="1417" w:bottom="1134" w:left="1417" w:header="708" w:footer="708" w:gutter="0"/><w:cols w:space="708"/>
<w:docGrid w:linePitch="360"/>
</w:sectPr></w:body></w:document>