Namespace:  pdf7.PdfWriter
Assembly:  pdf7.PdfWriter (in pdf7.PdfWriter.dll)

Syntax

Visual Basic (Declaration)
Public Shared Sub EncryptPdf ( _
	printerName As String, _
	inputFileName As String, _
	outputFileName As String, _
	ownerPassword As String, _
	userPassword As String, _
	encryptionType As PdfUtil..::.EncryptionType, _
	allowAssembly As Boolean, _
	allowCopy As Boolean, _
	allowDegradedPrinting As Boolean, _
	allowFillIn As Boolean, _
	allowModifyAnnotations As Boolean, _
	allowModifyContents As Boolean, _
	allowPrinting As Boolean, _
	allowScreenReaders As Boolean _
)
C#
public static void EncryptPdf(
	string printerName,
	string inputFileName,
	string outputFileName,
	string ownerPassword,
	string userPassword,
	PdfUtil..::.EncryptionType encryptionType,
	bool allowAssembly,
	bool allowCopy,
	bool allowDegradedPrinting,
	bool allowFillIn,
	bool allowModifyAnnotations,
	bool allowModifyContents,
	bool allowPrinting,
	bool allowScreenReaders
)
Visual C++
public:
static void EncryptPdf(
	String^ printerName, 
	String^ inputFileName, 
	String^ outputFileName, 
	String^ ownerPassword, 
	String^ userPassword, 
	PdfUtil..::.EncryptionType encryptionType, 
	bool allowAssembly, 
	bool allowCopy, 
	bool allowDegradedPrinting, 
	bool allowFillIn, 
	bool allowModifyAnnotations, 
	bool allowModifyContents, 
	bool allowPrinting, 
	bool allowScreenReaders
)
JavaScript
pdf7.PdfWriter.PdfUtil.encryptPdf = function(printerName, inputFileName, outputFileName, ownerPassword, userPassword, encryptionType, allowAssembly, allowCopy, allowDegradedPrinting, allowFillIn, allowModifyAnnotations, allowModifyContents, allowPrinting, allowScreenReaders);

Parameters

printerName
Type: System..::.String
inputFileName
Type: System..::.String
outputFileName
Type: System..::.String
ownerPassword
Type: System..::.String
userPassword
Type: System..::.String
encryptionType
Type: pdf7.PdfWriter..::.PdfUtil..::.EncryptionType
allowAssembly
Type: System..::.Boolean
allowCopy
Type: System..::.Boolean
allowDegradedPrinting
Type: System..::.Boolean
allowFillIn
Type: System..::.Boolean
allowModifyAnnotations
Type: System..::.Boolean
allowModifyContents
Type: System..::.Boolean
allowPrinting
Type: System..::.Boolean
allowScreenReaders
Type: System..::.Boolean

See Also