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,
	bool strength128Bits
)
Visual Basic
Public Sub SetEncryption ( _
	userPassword As Byte(), _
	ownerPassword As Byte(), _
	permissions As Integer, _
	strength128Bits As Boolean _
)
Visual C++
public:
void SetEncryption(
	array<unsigned char>^ userPassword, 
	array<unsigned char>^ ownerPassword, 
	int permissions, 
	bool strength128Bits
)

Parameters

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

See Also