Accusoft PDF Xpress Control v7.0
GetSecurity Method
The Owner Password of the Document.
Description
Gets the Security settings of the Document if it's secure, using the specified Owner Password.
Syntax
Visual Basic
Public Function GetSecurity( _
   ByVal OwnerPassword As String _
) As security
Parameters
OwnerPassword
The Owner Password of the Document.
Return Type
The Security settings of the Document.
Remarks

If the Document lacks Security, this returns null. If the Owner Password is incorrect an invalid owner password error will be thrown.

If an Empty String is used for the Owner Password, the Security.IsEditable property should be checked afterwards to determine if the Security settings returned can be modified.

Documents with Security Settings but no actual Owner Password specified are possible; in this case, an Empty String should be used as the specified parameter, and the Security.IsEditable property should be checked afterwards.

If security can't be modified, then the Owner Password will be unavailable.

See Also

PdfDocument Object  | PdfDocument Members

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback