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

Free Support Forum - aspose.com

Shape Frame Is Not Consistent after Presetting and Saving in PPTX Documents (2223)


I am writing to you about the problem we encountered in working with MSO PowerPoint document using the Aspose Slides for Java library (v21.10).

When we try to save the PPTX file as a new PPTX file (after presetting value of shape frame), there is no visual consistency (screenshot provided).

In the attachment below, you can find the ZIP file with test code, source PPTX file as well as screenshot of source and target presentations.

Best regards!

Test code, files and screenshot.zip (507.4 KB)

Thank you for reporting the issue.

I’ve reproduced the problem with the text placement in the presentation on Ubuntu and added a ticket with ID SLIDESJAVA-38903 to our issue tracking system. We apologize for any inconvenience. Our development team will investigate the case. You will be notified when the issue is resolved.

Our developers have investigated the case. The problem is the different font sets in Linux and Windows that were used to calculate the layout. If you want the same layout in both Linux and Windows, you must use the same fonts on both systems.

You can also use the following code to fix this problem with the layout of text on Linux:


MTCORSVA.zip (97.8 KB)

API Reference: FontsLoader class
Documents: Custom Font

We recommend also to install some Windows fonts like Arial, Calibri, Times New Roman, SimSun, etc. on Linux systems.