Click or drag to resize

SDFDocInitStdSecurityHandler Method (String)

Initializes document's SecurityHandler. This version of InitSecurityHandler() works with Standard and Custom PDF security and can be used in situations where the password is obtained dynamically via user feedback. See EncTest sample for example code. This function should be called immediately after an encrypted document is opened. The function does not have any side effects on documents that are not encrypted. If the security handler was successfully initialized it can be later obtained using GetSecurityHandler() method.

Namespace:  pdftron.SDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public bool InitStdSecurityHandler(
	string password
)

Parameters

password
Type: SystemString
The password to use.

Return Value

Type: Boolean
True if the SecurityHandler was successfully initialized (this may include authentication data collection, verification etc.), false otherwise.
See Also