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

Free Support Forum - aspose.com

Unable to open a word document. com.aspose.words.FileCorruptedException: The document appears to be corrupted and cannot be loaded (when ms word 2013 docx file loaded)

i am using aspose.word jars

java version is 1.6
Environment is Windows

Exception in thread "main" com.aspose.words.FileCorruptedException: The document appears to be corrupted and cannot be loaded.
at com.aspose.words.FileFormatUtil.a(FileFormatUtil.java:130)
at com.aspose.words.Document.b(Document.java:1283)
at com.aspose.words.Document.a(Document.java:1152)
at com.aspose.words.Document.(Document.java:149)
at com.bureauveritas.chemicaldischarge.Test.main(Test.java:16)
Caused by: java.lang.NullPointerException
at com.aspose.words.acm.a(NrxXmlUtil.java:184)
at com.aspose.words.hu.q(DocxThemeReader.java:297)
at com.aspose.words.hu.p(DocxThemeReader.java:266)
at com.aspose.words.hu.d(DocxThemeReader.java:231)
at com.aspose.words.hu.a(DocxThemeReader.java:102)
at com.aspose.words.hu.a(DocxThemeReader.java:79)
at com.aspose.words.gd.Dq(DocxDocumentReader.java:37)
at com.aspose.words.ge.read(DocxDocumentReaderBase.java:46)
at com.aspose.words.hd.Dr(DocxReader.java:63)
at com.aspose.words.hd.read(DocxReader.java:54)
at com.aspose.words.Document.b(Document.java:1232)
... 3 more
Hi Manish,

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

Hi Tahir,

We are loading any MS Office 2013 docx file.
jar - aspose.words.jdk16.jar

Hi Manish,

Thanks for your inquiry. Aspose.Words does support MS Word 2013 documents. Please upgrade to the latest version of Aspose.Words for Java 17.2.0 to fix this issue.