Creating a Flexible Word Document with Aspose.Words in Java

I need to create a Word document that includes various elements such as images, tables, and text, each placed at specific coordinates on the page. For example:
Image at (30, 50)
Link at (250, 75)
Text at (15, 300)
3x3 Table at (100, 300)

I’ve managed to use GroupShape and Shape to achieve this, but the issue is that if I manually add content later, it doesn’t display those if it overflows the shape. Additionally, elements below it remain fixed in place.

I want the document to allow for free-flowing content. Initially, when generated programmatically, the elements should be positioned at the specified coordinates, but after generation, if any content is added manually, it should automatically expand, pushing the elements below it down as well like how normally works in word.

How can I achieve this behavior using Aspose.Words in Java?

@spthakare02 As you may know MS Word documents are flow by their nature and content in the document is reflowed automatically when something is added or removed from the document. on other hand adding absolutely positioned content into the document is kind of violation of the flow document concept. So, I am afraid, it is impossible to have both absolutely positioned content and flow document behavior. This is not Aspose.Words restriction, this is specific of MS Word documents.

@alexey.noskov Thanks for your quick response! Instead of absolute positioning, can we place text on the left and a table on the right, or an image on the left with a table on the right, while allowing the text to flow naturally? We could consider adding space between these elements, using margins, or applying other styles. Is this possible with Aspose?

@spthakare02 Using Aspose.Words you can achieve the same as you can achieve in MS Word. Aspose.Words Document Object Model corresponds MS Word document object model.