Encrypt a PDF document.

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

Syntax

Visual Basic (Declaration)
Public Sub EncryptPdf ( _
	printerName As String, _
	inputFileName As String, _
	outputFileName As String, _
	ownerPassword As String, _
	userPassword As String, _
	encryptionType As String, _
	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 void EncryptPdf(
	string printerName,
	string inputFileName,
	string outputFileName,
	string ownerPassword,
	string userPassword,
	string encryptionType,
	bool allowAssembly,
	bool allowCopy,
	bool allowDegradedPrinting,
	bool allowFillIn,
	bool allowModifyAnnotations,
	bool allowModifyContents,
	bool allowPrinting,
	bool allowScreenReaders
)
Visual C++
public:
virtual void EncryptPdf(
	String^ printerName, 
	String^ inputFileName, 
	String^ outputFileName, 
	String^ ownerPassword, 
	String^ userPassword, 
	String^ encryptionType, 
	bool allowAssembly, 
	bool allowCopy, 
	bool allowDegradedPrinting, 
	bool allowFillIn, 
	bool allowModifyAnnotations, 
	bool allowModifyContents, 
	bool allowPrinting, 
	bool allowScreenReaders
) sealed
JavaScript
function encryptPdf(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: System..::.String
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