GroupDocs.Viewer is unable to detect password protected 7z archive.
Test code - password protected 7z archive shows Encrypted = False, but password protected zip archive shows Encrypted = True:
Using FileDialog As New OpenFileDialog
If FileDialog.ShowDialog() = DialogResult.OK Then
Using Viewer As GroupDocs.Viewer.Viewer = New GroupDocs.Viewer.Viewer(FileDialog.FileName)
Dim FileInfo As GroupDocs.Viewer.Results.FileInfo = Viewer.GetFileInfo()
MsgBox($"Encrypted = {FileInfo.Encrypted}")
End Using
End If
End Using
Just realized that GroupDocs.Viewer is unable to detect password protected 7z archive as well.
Test code - password protected 7z archive shows Encrypted = False, but password protected zip archive shows Encrypted = True:
Using FileDialog As New OpenFileDialog
If FileDialog.ShowDialog() = DialogResult.OK Then
Using Viewer As GroupDocs.Viewer.Viewer = New GroupDocs.Viewer.Viewer(FileDialog.FileName)
Dim FileInfo As GroupDocs.Viewer.Results.FileInfo = Viewer.GetFileInfo()
MsgBox($"Encrypted = {FileInfo.Encrypted}")
End Using
End If
End Using
I’m sorry for the delayed response. We do have plans to include this fix in the next version of GroupDocs.Total for .NET and GroupDocs.Viewer for .NET. At the moment the fix is in development. We’ll let you know in case any new information.
GroupDocs.Conversion team uses System.Reflection.MetadataLoadContext to load all the types without loading all internal and heavy dependencies to improve startup time.