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

Syntax

C#
public static void Encrypt(
	PdfReader reader,
	Stream os,
	bool strength,
	string userPassword,
	string ownerPassword,
	int permissions
)
Visual Basic
Public Shared Sub Encrypt ( _
	reader As PdfReader, _
	os As Stream, _
	strength As Boolean, _
	userPassword As String, _
	ownerPassword As String, _
	permissions As Integer _
)
Visual C++
public:
static void Encrypt(
	PdfReader^ reader, 
	Stream^ os, 
	bool strength, 
	String^ userPassword, 
	String^ ownerPassword, 
	int permissions
)

Parameters

reader
Type: iTextSharp.text.pdf..::..PdfReader
os
Type: System.IO..::..Stream
strength
Type: System..::..Boolean
userPassword
Type: System..::..String
ownerPassword
Type: System..::..String
permissions
Type: System..::..Int32

See Also