Free Support Forum - aspose.com

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

@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.