Currently we have sometimes with some docx files a Aspose.Words.FileCorruptedException with aspose word version 25.1.0 (.NET) when converting docx to pdf / on opening the docx file.
The docx file seems to be valid and can be editied with office word 365 without any problems.
Here is the complete stacktrace:
Aspose.Words.FileCorruptedException
HResult=0x80131500
Message=The document appears to be corrupted and cannot be loaded.
Source=Aspose.Words
StackTrace:
at Aspose.Words.Document.(Stream , LoadOptions )
at Aspose.Words.Document.(Stream , LoadOptions )
at Aspose.Words.Document..ctor(String fileName, LoadOptions loadOptions)
at Aspose.Words.Document..ctor(String fileName)
at aspose_test.Program.Main(String[] args) in C:\Users\neunzig\source\repos\aspose test\Program.cs:line 17
This exception was originally thrown at this call stack:
[External Code]
Inner Exception 1:
NullReferenceException: Object reference not set to an instance of an object.
I can also provide you a “defect” docx file for testing.