Failed to process file : Econophysics_all.docx

Description:

getting Errors while processing the file Econophysics_all.docx
Econophysics_anon.docx (356.9 KB)
while converting Word to pdf.

dependency:

<dependency>
	<groupId>com.aspose</groupId>
	<artifactId>aspose-total</artifactId>
	<version>23.8</version>
	<type>pom</type>
</dependency>

amd64/eclipse-temurin:11-jre-alpine

code snippet:

byte[] bufBytes = inputStream.readAllBytes();
com.aspose.words.FileFormatInfo info = com.aspose.words.FileFormatUtil.detectFileFormat(new ByteArrayInputStream(bufBytes));
if (info.isEncrypted())
{
    createAlertPageForEncryptedFile(directoryPath, actualFileName, outputFileName, MICROSOFT_WORD_LOCK_PNG_PATH);
    return;
}
com.aspose.words.Document document = new com.aspose.words.Document(new ByteArrayInputStream(bufBytes));
FontSettings fontSettings = new FontSettings();
fontSettings.setFontsFolder(getFontDirectory(), true);
document.setFontSettings(fontSettings);

com.aspose.words.PdfSaveOptions pdfSaveOptions = new com.aspose.words.PdfSaveOptions();
pdfSaveOptions.setUseCoreFonts(true);
pdfSaveOptions.setUpdateFields(false);
pdfSaveOptions.setOptimizeOutput(true);
pdfSaveOptions.setMemoryOptimization(true);

document.save(directoryPath + PATH_SEPARATOR + outputFileName, pdfSaveOptions);

@TandFSP
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-26513

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you have found earlier (filed as WORDSNET-26513) have been fixed in this Aspose.Words for Java 24.4 update.