Used version: Aspose.Words 14.9.0.
When I try to open regular (not password-protected) DOCX file and specify password, then
Aspose.Words.FileCorruptedException is thrown with the message: The document appears to be corrupted and cannot be loaded. Think it is better to open file without error or at least throw IncorrectPasswordException.
try
{
new Aspose.Words.Document(@"docx.docx",c new w.LoadOptions()
{
Password = "test"
});
}
catch (FileCorruptedException){ }
Thanks,
Alex Shloma