DOCX does not import into Aspose.Words DOM using Java

System Error : com.aspose.words.FileCorruptedException

System Error : The document appears to be corrupted and cannot be loaded.

com.aspose.words.FileCorruptedException: The document appears to be corrupted and cannot be loaded. at com.aspose.words.FileFormatUtil.a(Unknown Source) at com.aspose.words.Document.b(Unknown Source) at com.aspose.words.Document.a(Unknown Source) at com.aspose.words.Document.(Unknown Source) at com.aspose.words.Document.(Unknown Source) at

can someone please tell me what is wrong or any other way to fix it from code side`

Word-Import-Example1.zip (16.1 KB)
`

@Rekha410

Could you please attach your input Word document here for testing? We will investigate the issue on our side and provide you more information.

@tahir.manzoor yes i have attached the file here

@Rekha410

We have imported the document into Aspose.Words’ DOM using the latest version of Aspose.Words for Java 20.3 and have not found the shared issue. So, please use Aspose.Words for Java 20.3.

Document doc = new Document(MyDir + "Word-Import-Example (1).docx");