We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

SmartArt node resizing

Hi Support,

I would like to know if it’s possible using Aspose Slide Java to change the size of the organization chart node (height or width)?

Ideally is it possible to set the height / width ratio, or is it possible to make sure the height can be changed to fit the text inside without overlap, in that case, we could add blank line to increase the height as a workaround.

Even if using the method, where the shape size supposed to fit the text (as written in the java method comment), this seems to not change the behavior, and the text still overlaps:
ITextFrame textFrame = ISmartArtNode.getTextFrame textFrame.getTextFrameFormat().setAutofitType(TextAutofitType.Shape);

The question is quite similar with another one asked 3 years ago:

Thanks in advance,

Hi Nordine,

I have observed your comments. Can you please share source presentation, generated presentation so that we can further investigate to help you out. Also please share environment details and which Aspose.Slides version you are using on your end.

Best Regards,

Adnan Ahmad
Aspose - File Format APIs

Keep in touch! We’re on Twitter and Facebook

Hi Ahmad,

The code and the environment details are totally similar with that message thread (also posted by me):

The point is that I just need to increase the height of the nodes, but I couldn’t find a way.

Best regards,

Hi Nordine,

I have worked over your requirements and like to share that at present the support for adjusting the width and height of SmartArt node is unavailable in Aspose.Slides. You can set the TextFrame Autofit type to TextAutofitType.Shape, which ensures the auto increase in height of SmartArt node on increasing text. However, this feature is presently not working and an issue with ID SLIDESJAVA-36449 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the support will be available.

We are sorry for your inconvenience,

Mudassir Fayyaz