com.aspose.pdf.internal.ms.System.l7k: Neutral cultures

Hello, I am trying to evaluate aspose jar file. I am using the following configurations

aspose.pdf-21.6.jar
Debian GNU/Linux 10, Release 10
jdk-10.0.1
apache-tomcat-9.0.5

I am trying to convert PDF to HTML. However, i am getting the following error
com.aspose.pdf.internal.ms.System.l7k: Neutral cultures cannot be used in formatting and
parsing and therefore cannot be set as the thread’s current culture
inside multipart=com.aspose.pdf.internal.ms.System.l7k: Neutral cultures cannot be used in
formatting and parsing and therefore cannot be set as the thread’s current culturetest.pdf (138.8 KB)

I have attached the PDF which i am trying to convert…

@nnipunjjain1

I request you to explain it little more. Does this happen with every PDF file or a particular one? Share the code which you are using to convert PDF to HTML so that we may try to reproduce the same on our end.

This is happening with 3 PDF which i have used for testing.

Code Snippet
Document pdfDocument = new Document(incomingFile);
outputFile = outboxDirectory + outFileBaseName +".html";
pdfDocument.save(outputFile, SaveFormat.Html);

@nnipunjjain1

We are checking it and will get back to you soon.

Are you able to reproduce this issue? Let me know if any additional feedback is required from my side

@nnipunjjain1

We can not reproduce the issue. I request you to share some more details like culture info of your system.

What is culture info of the system? How to retreive?

@nnipunjjain1

You can try to change the locale or test it in some other system because we can not reproduce it.

Which locale i should use? Any suggestion. Refer the below mentioned details about the locale on my system

LANG=C.UTF-8
LANGUAGE=
LC_CTYPE=“C.UTF-8”
LC_NUMERIC=“C.UTF-8”
LC_TIME=“C.UTF-8”
LC_COLLATE=“C.UTF-8”
LC_MONETARY=“C.UTF-8”
LC_MESSAGES=“C.UTF-8”
LC_PAPER=“C.UTF-8”
LC_NAME=“C.UTF-8”
LC_ADDRESS=“C.UTF-8”
LC_TELEPHONE=“C.UTF-8”
LC_MEASUREMENT=“C.UTF-8”
LC_IDENTIFICATION=“C.UTF-8”
LC_ALL=

@nnipunjjain1

Please try to set the locale with both approaches and share your feedback.

1: com.aspose.pdf.LocaleOptions.setLocale(java.util.Locale.US);
2: Locale.setDefault(new Locale (“en”,“US”));