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

Syntax

C#
public void SetEncryption(
	byte[] userPassword,
	byte[] ownerPassword,
	int permissions,
	int encryptionType
)
Visual Basic
Public Sub SetEncryption ( _
	userPassword As Byte(), _
	ownerPassword As Byte(), _
	permissions As Integer, _
	encryptionType As Integer _
)
Visual C++
public:
virtual void SetEncryption(
	array<unsigned char>^ userPassword, 
	array<unsigned char>^ ownerPassword, 
	int permissions, 
	int encryptionType
) sealed

Parameters

userPassword
Type: array<System..::..Byte>[]()[][]
ownerPassword
Type: array<System..::..Byte>[]()[][]
permissions
Type: System..::..Int32
encryptionType
Type: System..::..Int32

Implements

IPdfEncryptionSettings..::..SetEncryption(array<Byte>[]()[][], array<Byte>[]()[][], Int32, Int32)

See Also