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

Free Support Forum - groupdocs.com

Document viewer API - a problem with Locale and / or license in Java

We recently upgraded our license to version 24.1.
Unfortunately, we still have to use:

        Locale usLocale = new Locale("en", "US");

With the setting

        new Locale("en", "DE")

the conversion the transformation receives the overprint “Evaluation Only. Created with Aspose.Words. Copyright 2003-2020 Aspose Pty Ltd” or an exception

“7:23:26 [https-jsse-nio-9443-exec-2] ERROR d.x.w.u.f.ConvertService - getConvertedToPdfInputStream, error:
com.groupdocs.viewer.exception.GroupDocsViewerException: Could not load file. File is corrupted or damaged.”

  • depending on the file type.

macOS BigSure,
OpenJDK Runtime Environment Zulu11.41+23-CA


Please confirm that you can reproduce this issue with any file or with specific file(s)?

With .docx, xlsx - a watermark “Evaluation Only. Created with Aspose.Words. C…”, with tiff, doc, jpg, mpp - exception “Could not load file. File is corrupted or damaged.”.

Problem with non-standard Locale.
It works with “de_DE” or “en_US”


Thanks for the details. We’ll try reproducing this issue on our side and update you. The issue ID in our internal bug-tracker is VIEWERJAVA-2551.

Thank you :slight_smile:
One question more - can we expect another format to be processed - AFP?


You’re welcome!


We’ve found the root cause of this issue. As a workaround the only option at the moment is

Locale usLocale = new Locale("en", "US");

We’ll notify you when this issue will be fixed.

Have a nice day!

Thanks a lot, yes it works :slight_smile: One question more - conversion from afp format is very important for us.
This is an old and rarely used today format. There are archives in the world with thousands of billions of documents that need to be processed.
Do you have a solution for this problem?


Could you please confirm that you’re talking about FileProtector Encrypted File (AndrosaSoft)?

" AFP (Advanced Function Presentation) format is part of IBM’s document imaging system. It is a raster format, created to add enhanced formatting and indexing capabilities to documents for print applications in finance, retail, insurance and other industries."

As reference:


This is the headache of all people who worked with IBM archives :slight_smile:


Thank you for sharing the details. We’ll consider adding support for this file format and update you.

Then your solution will be the most complete of platform-independent :slight_smile:. Look forward to! Ждём с нетерпением :slight_smile:


Sure, we’ll take a look and update you!

Have a nice day!


Unfortunately, this is expected behavior the locale ‘en_DE’ is not supported see https://www.oracle.com/java/technologies/javase/jdk11-suported-locales.html. We’re sorry for the inconvinience.

Thanks a lot, luckily the workaround you suggested works

        Locale initLocale = Locale.getDefault();
        Locale usLocale = new Locale("en", "US");
        License license = new License();

Now we are waiting for the AFP - converter :slight_smile:


You’re welcome! The AFP is under investigation. We’ll let you know in case there are any updates!

Have a nice day!