Free Support Forum - aspose.com

About Aspose.Slides for Android

Hello,
Presentation presentation = new Presentation(srcFile.getAbsolutePath());

I will throw an exception when I use this method.

Caused by: class com.aspose.slides.exceptions.ArgumentException: Culture Name: zh-CN-#Hans is not a supported culture
com.aspose.slides.internal.e4.if.if(Unknown Source:79)
com.aspose.slides.internal.e4.if.(Unknown Source:35)
com.aspose.slides.internal.e4.if.do(Unknown Source:11)
com.aspose.slides.internal.fm.int.int(Unknown Source:24)
com.aspose.slides.internal.e4.if.int(Unknown Source:4)
com.aspose.slides.internal.e4.char.else(Unknown Source:0)
com.aspose.slides.ms.System.long.if(Unknown Source:0)
com.aspose.slides.nt.do(Unknown Source:3)
com.aspose.slides.nt.do(Unknown Source:60)
com.aspose.slides.nt.do(Unknown Source:6)
com.aspose.slides.nt.if(Unknown Source:49)
com.aspose.slides.FontData.(Unknown Source:7)
com.aspose.slides.nt.(Unknown Source:14)
com.aspose.slides.Presentation.(Unknown Source:18)

How should I solve it?Thanks~

@UnstoppableQvQ,

I have observed your comments. Can you please share source file so that we may further investigate to help you out.

Presentation presentation = new Presentation(srcFile.getAbsolutePath());
presentation.getSlides().size();
HtmlOptions htmlOpt = new HtmlOptions();
htmlOpt.setIncludeComments(true);
htmlOpt.setHtmlFormatter(HtmlFormatter.createDocumentFormatter("", false));
presentation.save(srcFile.getParent() + “test.html”, com.aspose.slides.SaveFormat.Html, htmlOpt);

Throws an exception when the object is instantiated。

@UnstoppableQvQ,

I have observed the sample code and there seems no issue in sample code. I suggest you to please try using latest Aspose.Slides for Java 18.9 on your end. If there is still an issue then please provide the source presentation along with Operating System and Java details on your end.

Thanks,I solved the problem with this code:

Locale locale = new Locale(“zh”, “CN”);
Locale.setDefault(locale);

but found that loading the pptx file takes a long time and continuously executes the GC.

@UnstoppableQvQ,

It’s good to know that things are fine on your end. Please feel free to share if there is any further issue incurring on your end.

Hello~
Loading the pptx file takes a long time and continuously executes the GC.
How should I solve it?Thanks~

@UnstoppableQvQ,

Can you please provide the details of the issue along with snapshots so that we may proceed further to investigate the issue on our end.

Presentation presentation = new Presentation(srcFile.getAbsolutePath());

Execution takes a long time and is continuously executed GC.

@UnstoppableQvQ,

I have observed your comments. Can you please provide the source file which is causing issue and details of the issue along with snapshots so that we may proceed further to investigate the issue on our end.

test.zip (326.7 KB)

This is the test file,It takes a long time to convert.

@UnstoppableQvQ,

Thank you for sharing the presentation file with us. As requested earlier, please also provide the details of the issue in the form of snapshot, execution times and your environment details with us.