Text Effects - 3D rotation


I would like to achieve a state in which I have a rectangle with text which has Vertical orientation.
In Ms Word I just create a rectangle, next I add some text and then in “Shape Styles” section (after clicking the small arrow in the right corner) I can define 3D Rotation for text , which gives mi the correct result. I can’t find similar option in java API for shapes, because for table cells is present


Please check if the following code produces the desired output on your end?

Document doc = new Document("C:\\Temp\\sample.docx");
DocumentBuilder builder = new DocumentBuilder(doc);

Shape shape = builder.insertShape(ShapeType.RECTANGLE, 2 * 72, 2 * 72);
Paragraph para = new Paragraph(doc);



builder.write("Hello World");



If this is not what you are looking for then please also provide your expected DOCX file showing the desired output here for our reference. We will then provide you code to achieve the same expected output by using Aspose.Words.

expected.zip (70.5 KB)


We have logged your requirement in our issue tracking system. Your ticket number is WORDSNET-22771. We will further look into the details of this requirement and will keep you updated here on the status of the linked ticket.