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

Free Support Forum - aspose.com

Difference in Language ID for .ppt and .pptx files (1038)


I’ve created a portion with some Chinese text and set it’s Asian font to “SimSun” and Language ID to “zh”. When I save it as .pptx and open it in PowerPoint, I noticed the Language ID has been correctly set to Chinese (PRC). But for the .ppt file, it has been set to “English (United States)”.

Here’s the code I use:

String path = “Test.ppt”;

Presentation presentation = new Presentation(path);

ISlide slide = presentation.getSlides().get_Item(0);
IAutoShape shape = (IAutoShape) slide.getShapes().get_Item(0);
IParagraph paragraph = shape.getTextFrame().getParagraphs().get_Item(0);
IPortionCollection portions = paragraph.getPortions();
IPortion portion = new Portion(“末動的 國推動”);
IPortionFormat portionFormat = portion.getPortionFormat();

portionFormat.setEastAsianFont(new FontData(“SimSun”));

presentation.save(“Test-zh.ppt”, SaveFormat.Ppt);
presentation.save(“Test-zh.pptx”, SaveFormat.Pptx);

Can you check this?


Hi Zeljko,

I have worked with presentation file shared by you using Aspose.Slides for Java 17.5 and have been able to observe the issue. A ticket with ID SLIDESJAVA-36440 has been created in our issue tracking system to further investigate issue in detail. This thread has been linked with issue so that you may be automatically notified once issue will be fixed.

We are sorry for your inconvenience,