Thanks for your request. MS Word document is flow document and does not contain any information about its layout into lines and pages. So there is no way to determine on which page and where on the page some particular node is located.
In Aspose.Words we use our own Rendering Engine, which layouts Word document into pages. Using this Rendering Engine it is possible to determine position of the particular node. But currently there is no public API to achieve this. But we have plans to expose layout information. Your request has been linked to the appropriate issue. You will be notified as soon as this feature is supported. The feature ID is WORDSNET-2978.
I have already tried to remove TopMargin, BottomMargin, FooterDistance and HeaderDistance from the PageHeight Property of the attached document.
But the result is something about 714 points. If is set the inserted inlineShape Height to this value, the shapes height exceeds the availabe space.
I have tested the scenario with following code snippet and have not found any issue while using latest version of Aspose.Words for .NET. Can you please share some more information about this issue?
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
PageSetup ps = doc.FirstSection.PageSetup;
double height = ps.PageHeight - ps.TopMargin - ps.BottomMargin - ps.FooterDistance - ps.HeaderDistance;
Shape img = builder.InsertImage(@"d:\image.jpg");
img.Height = height;
doc.Save(MyDir + "AsposeOut.docx");