Click or drag to resize

PdfTranslatorSetOneTimePasswords Method

Sets user and owner passwords and generates one-time keys for saving encrypted PDF document. Keys will be reset after calling Translate method.

Namespace:  Atalasoft.Ocr
Assembly:  Atalasoft.dotImage.Ocr (in Atalasoft.dotImage.Ocr.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public void SetOneTimePasswords(
	SecureString userPassword,
	SecureString ownerPassword = null
)

Parameters

userPassword
Type: System.SecuritySecureString
The user password.
ownerPassword (Optional)
Type: System.SecuritySecureString
The owner password.
Remarks

PDF documents have two passwords associated with them, a user password and an owner password. If an encrypted document is opened by a conforming reader using the owner password, then the security Permissions are ignored. If an encrypted document is opened by a conforming reader using the user password, then the security Permissions are enforced. When a document is created with only one password or one unique password, it is considered the same as having only an owner password.

PDF/A standard does not support encryption and password-protected access permissions.

See Also