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.

Namespace: Spire.Pdf.Security
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 6.2.6.0 (6.2.6.2020)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
public void Encrypt(
	string openPassword
)
Public Sub Encrypt ( 
	openPassword As String
)
public:
void Encrypt(
	String^ openPassword
)
member Encrypt : 
        openPassword : string -> unit 

Parameters

openPassword
String
The open password

Return Value


See Also