Text Effects - 3D rotation

Hello,

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
builder.getCellFormat().setOrientation(TextOrientation.DOWNWARD)

@aolo23,

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);
shape.setFillColor(Color.WHITE);
Paragraph para = new Paragraph(doc);
shape.appendChild(para);

builder.moveTo(shape.getFirstParagraph());

builder.getFont().setColor(Color.BLUE);
builder.getParagraphFormat().setAlignment(ParagraphAlignment.CENTER);

builder.write("Hello World");

shape.setRotation(90);

doc.save("C:\\temp\\awjava-21.9.docx");

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)

@aolo23,

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.