Namespace: iTextSharp.text.pdf
Assembly: ITextSharp (in ITextSharp.dll) Version: 4.1.6.0

Syntax

C#
public void SetEncryption(
	int encryptionType,
	string userPassword,
	string ownerPassword,
	int permissions
)
Visual Basic
Public Sub SetEncryption ( _
	encryptionType As Integer, _
	userPassword As String, _
	ownerPassword As String, _
	permissions As Integer _
)
Visual C++
public:
void SetEncryption(
	int encryptionType, 
	String^ userPassword, 
	String^ ownerPassword, 
	int permissions
)

Parameters

encryptionType
Type: System..::..Int32
userPassword
Type: System..::..String
ownerPassword
Type: System..::..String
permissions
Type: System..::..Int32

See Also