When initializing a new GroupDocs.Parser.Parser instance with password protected 7-Zip archive as a Stream, this exception is thrown:
- Exception of type ‘GroupDocs.Parser.Exceptions.UnsupportedDocumentFormatException’ was thrown.
When initializing using filepath instead of Stream, this exception is thrown:
- Wrong compression method for encoded header
Will be great if it is able to detect password protection and throw meaningful exceptions such as the below for .docx and .zip respectively:
- Password is required to convert password protected docx document
- Exception of type ‘GroupDocs.Parser.Exceptions.InvalidPasswordException’ was thrown.
i.e. make sure that the word “password” appears in the exception message so that developers can handle it accordingly, thanks!