add method

On this page

add

Adds a password for a document to the dictionary.

def add(self, key, password):
    ...
Parameter Type Description
key str The full file path or a document key.
password str The document password.

Example

# Assuming `index` is an opened GroupDocs Search index
passwords = index.dictionaries.document_passwords
passwords.add(key="/docs/confidential.pdf", password="mySecret")

Aliases

These names call add too, limited to the overloads listed.

Alias Accepts
add_file add_file(key, password)
add_string add_string(key, password)

See Also

On this page