DOC TO PDF: Aspose.Words.FileCorruptedException

Version of Aspose.Words 21.4.
Load document with Aspose and save it to PDF format.

Aspose.Words.FileCorruptedException: The document appears to be corrupted and cannot be loaded.
 ---> System.InvalidOperationException: Incorrectly read SPRM:D62F. Expected 0, but read 11 bytes.
   at     (Byte[] )
   at    .(    , Byte[] )
   at ​  . (Int32 ,  ​  )
   at    . (    , Int32 , Int32 , Boolean)
   at    . (    )
   at    . (Int32 , Int32 )
   at    . ()
   at ​   ()
   at    .     ()
   at Aspose.Words.Document (Stream , LoadOptions )
   --- End of inner exception stack trace ---
   at Aspose.Words.Document (Stream , LoadOptions )
   at Aspose.Words.Document. (Stream , LoadOptions )
   at Aspose.Words.Document..ctor(String fileName, LoadOptions loadOptions)

Another example http://www.pyrenees-orientales.gouv.fr/content/download/24891/183198/file/RDDECI%20%2006%2009%2016%20V%20maj%2006-09-2018.docx

@boris.nikitin,

We tested the scenarios and have managed to reproduce the same problems on our end. For the sake of corrections, we have logged the following issues in our issue tracking system.

  • WORDSNET-22355: Document corrupted | Incorrectly read SPRM:D62F. Expected 0, but read 11 bytes (related to DOT file)
  • WORDSNET-22356: Document corrupted | Object reference not set to an instance of an object (related to DOCX file)

We will further look into the details of these problems and will keep you updated on the statuses of corrections. We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-22356) have been fixed in this Aspose.Words for .NET 21.7 update and this Aspose.Words for Java 21.7 update.

The issues you have found earlier (filed as WORDSNET-22355) have been fixed in this Aspose.Words for .NET 21.7 update and this Aspose.Words for Java 21.7 update.