PdfSecurity
Encrypt Method (String)
|
To Encrypt the PDF document with open password.
Note:If set empty string value to open password, it indicates that the PDF document can be operated without providing corresponding password.
Note: the document owner password should not be exist.
Namespace:
Spire.Xls.Pdf.Security
Assembly:
Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public void Encrypt(
string openPassword
)
Public Sub Encrypt (
openPassword As String
)
public:
void Encrypt(
String^ openPassword
)
member Encrypt :
openPassword : string -> unit
Parameters
-
openPassword
-
Type:
System
String
The open password
See Also