The code in below examples uses some methods defined in Common Utilities
This feature is supported by version 16.12 or greater.
GroupDocs.Search API allows to add password protected documents to index and hence provides the functionality to search among the protected documents as well. The API sets password for indexing password protected documents in the following ways:
Following code snippet shows how to subscribe to PasswordRequired event to be able to specify a password
Following code snippet shows the event which will appear for every password protected document
To set a password for protected documents using Index.Dictionaries.DocumentPasswords property, follow the following steps:
Following is the code inspect.
Following code snippet shows how the password for a protected document is set for indexing using both event argument and index.Dictionaories.DocumentPasswords property.
This feature is supported by version 17.2 or greater
The API allows to use privileges of IEnumerable for Password dictionary. Following code snippet shows how to use GetEnumerator method.