Free Support Forum - aspose.com

Shape Rotate with text is not rendering as expected

Hi,
I am trying to insert Shape with text rotate using Aspose.words java latest version, in the saved document, Shape got rotated but text didn’t. Am i doing anything wrong? Please help me !!

public static void main(String[] args) {

	Document doc;
	try {
		doc = new Document();
		Shape textBox = new Shape(doc, ShapeType.TEXT_BOX);
		textBox.setWrapType(WrapType.NONE);
		textBox.setRotation( 345 );

		textBox.setHeight( 50.0 );
		textBox.setWidth(200.0);

		Node test = new Paragraph(doc);
		textBox.appendChild( test );
		Paragraph para = textBox.getFirstParagraph();
		para.getParagraphFormat().setAlignment(ParagraphAlignment.CENTER);

		Run run = new Run(doc);
		run.setText( "Content in textbox");
		para.appendChild(run);

		doc.getFirstSection().getBody().getFirstParagraph().appendChild(textBox);

		doc.save("/Users/parthi-4272/OfficeWork/DocumentShape.doc");
		
	} catch (Exception e) {
		e.printStackTrace();
	}
}

@parthibanzu365,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-16827. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-16827) have been fixed in this Aspose.Words for .NET 18.6 update and this Aspose.Words for Java 18.6 update.

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan