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

Free Support Forum - aspose.com

Cannot convert doc to pdf (FileCorruptedException)


Attached document created in MS Word could be converted without any problems when you use online converter http://convertonlinefree.com/

In case of using:
import com.aspose.words.Document;
Document doc = new Document(strInputFile);
doc.save( output);

the following error occurs:

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)

Caused by: java.lang.IllegalStateException: Unsupported form field type.
at com.aspose.words.zz7T.zzZ(Unknown Source)
at com.aspose.words.zz7T.zzx(Unknown Source)
at com.aspose.words.zzZDU.zzW(Unknown Source)
at com.aspose.words.zzZDU.zzZ(Unknown Source)
at com.aspose.words.zzZDU.zzZ(Unknown Source)
at com.aspose.words.zzZDU.zzQ(Unknown Source)
at com.aspose.words.zzZDU.zzZ(Unknown Source)

Best Regards,

Hi Arkadiusz,

Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 14.8.0, I managed to reproduce this issue on my side. I have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-10838. Your thread has also been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,

The issues you have found earlier (filed as WORDSNET-10838) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.