PdfDocument Object : GetSecurity Method |
Visual Basic |
---|
Public Function GetSecurity( _ ByVal OwnerPassword As String _ ) As security |
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. |