Error com.aspose.words.FileCorruptedException: The document appears to be corrupted and cannot be loaded during openning converted doc to pdf file

Hi!


Trying to open pdf file which is converted from doc and this exception is rising
Caused by: com.aspose.words.FileCorruptedException: The document appears to be
corrupted and cannot be loaded.
at
com.aspose.words.FileFormatUtil.zzY(Unknown Source)
at
com.aspose.words.Document.zzY(Unknown Source)
at
com.aspose.words.Document.zzZ(Unknown Source)
at
com.aspose.words.Document.(Unknown Source)
at
com.aspose.words.Document.(Unknown Source)
at
com.croc.documentum.sibur.core.rendition.DocumentReplacementStream.onHandle(DocumentReplacementStream.java:58)

35 more
Caused by: java.lang.NullPointerException
at
com.aspose.words.zzZGR.zzB(Unknown Source)
at
com.aspose.words.zzZGA.zzJ(Unknown Source)
at
com.aspose.words.zzZGA.zzO(Unknown Source)
at
com.aspose.words.zzZGA.zzR(Unknown Source)
at
com.aspose.words.zzZGA.zzX(Unknown Source)
at
com.aspose.words.zzZGA.zzZ(Unknown Source)
at
com.aspose.words.zz8J.zzQ(Unknown Source)
at
com.aspose.words.zz8B.zzG(Unknown Source)
at
com.aspose.words.zz7Y.zzQ(Unknown Source)
at
com.aspose.words.zz7Y.zzR(Unknown Source)
at
com.aspose.words.zz7Y.zzZ(Unknown Source)
at
com.aspose.words.zz8L.zzZ(Unknown Source)
at
com.aspose.words.zzZG8.zzY(Unknown Source)
at
com.aspose.words.zzZGG.zzY(Unknown Source)
at
com.aspose.words.zz8B.zzG(Unknown Source)
at
com.aspose.words.zz7Y.zzQ(Unknown Source)
at
com.aspose.words.zz90.zzR(Unknown Source)
at
com.aspose.words.zz91.zz0L(Unknown Source)
at
com.aspose.words.zz91.zz0M(Unknown Source)
at
com.aspose.words.zz90.read(Unknown Source)
at
com.aspose.words.zz8A.zz0L(Unknown Source)
at
com.aspose.words.zz8A.read(Unknown Source)
at
com.aspose.words.Document.zzY(Unknown Source)
… 39
more
com.aspose.words.FileCorruptedException: The document appears to be
corrupted and cannot be loaded.
at
com.aspose.words.FileFormatUtil.zzY(Unknown Source)
at
com.aspose.words.Document.zzY(Unknown Source)
at
com.aspose.words.Document.zzZ(Unknown Source)
at
com.aspose.words.Document.(Unknown Source)
at
com.aspose.words.Document.(Unknown Source)

Source doc file is attached.
Thanks in advance.

Hi Tatiana,


Thanks for your inquiry. After an initial test with Aspose.Words 15.2.0, I was unable to reproduce this issue on my side. I would suggest you please upgrade to the latest version of Aspose.Words. You can download it from the following link. I hope, this helps.
http://www.aspose.com/community/files/72/java-components/aspose.words-for-java/default.aspx

Best regards,

Thanks! It works.

A post was split to a new topic: com.aspose.words.FileCorruptedException - Aspose.Words