We recently upgraded our license to version 24.1.
Unfortunately, we still have to use:
Locale usLocale = new Locale("en", "US");
Locale.setDefault(usLocale);
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.
Environment:
macOS BigSure,
OpenJDK Runtime Environment Zulu11.41+23-CA
groupdocs-viewer:21.4
@valentinz
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”
@valentinz
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
One question more - can we expect another format to be processed - AFP?
@valentinz
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");
Locale.setDefault(usLocale);
We’ll notify you when this issue will be fixed.
Have a nice day!
Thanks a lot, yes it works 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?
@valentinz
Could you please confirm that you’re talking about FileProtector Encrypted File (AndrosaSoft)?
No,
" 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:
or
This is the headache of all people who worked with IBM archives
@valentinz
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 . Look forward to! Ждём с нетерпением
@valentinz
Sure, we’ll take a look and update you!
Have a nice day!
@valentinz
Unfortunately, this is expected behavior the locale ‘en_DE’ is not supported see Java 11 Supported Locales. 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();
license.setLicense(inputStream);
Locale.setDefault(initLocale);
Now we are waiting for the AFP - converter
@valentinz
You’re welcome! The AFP is under investigation. We’ll let you know in case there are any updates!
Have a nice day!