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

Free Support Forum - aspose.com

Fail to open these doc files

PdfSaveOptions saveOptions = new PdfSaveOptions();
saveOptions.setWarningCallback(new WarningCallback());
File converted = File.createTempFile("aspdf-", ".pdf");
Document doc = new Document("C:\\tmp\\Document1.doc");
stripTrackChangesData(doc);
doc.save(converted.getAbsolutePath(), saveOptions);

Go the following error:
java.lang.IllegalStateException: End of file reached.
at asposewobfuscated.zz3T.zzSI(Unknown Source)
at asposewobfuscated.zz3T.zzYE(Unknown Source)
at asposewobfuscated.zzYU.zzYE(Unknown Source)
at asposewobfuscated.zz9E.zzQ(Unknown Source)
at asposewobfuscated.zz9E.(Unknown Source)
at asposewobfuscated.zz6N.zztl(Unknown Source)
at asposewobfuscated.zz6N.zzY(Unknown Source)
at asposewobfuscated.zz6N.zzZ(Unknown Source)
at asposewobfuscated.zzKJ.zzZ(Unknown Source)
at asposewobfuscated.zzBG.zzY(Unknown Source)
at asposewobfuscated.zzC3.zzJ(Unknown Source)
at asposewobfuscated.zzC3.zzK(Unknown Source)
at asposewobfuscated.zzC5.endDocument(Unknown Source)
at asposewobfuscated.zzAH.endDocument(Unknown Source)
at com.aspose.words.zzZPX.zzZXD(Unknown Source)
at com.aspose.words.zzDJ.zzZ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.save(Unknown Source)
at

Hi Will,

Thanks for your inquiry. I suggest you please upgrade to the latest version of Aspose.Words for Java 14.6.0 from here:
http://www.aspose.com/community/files/72/java-components/aspose.words-for-java/entry557800.aspx

I have tested the scenario and have managed to reproduce the exception issue for Document1.doc. However, there is no issue while converting Document2.doc to Pdf.

For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-10428. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

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


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