Encrypt a PDF document.
Namespace: pdf7.PdfWriter
Assembly: pdf7.PdfWriter (in pdf7.PdfWriter.dll) Version: 4.0.0.0 (4.0.1000.111)
Syntax
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 )
Parameters
- printerName
- Type: SystemString
- inputFileName
- Type: SystemString
- outputFileName
- Type: SystemString
- ownerPassword
- Type: SystemString
- userPassword
- Type: SystemString
- encryptionType
- Type: SystemString
- allowAssembly
- Type: SystemBoolean
- allowCopy
- Type: SystemBoolean
- allowDegradedPrinting
- Type: SystemBoolean
- allowFillIn
- Type: SystemBoolean
- allowModifyAnnotations
- Type: SystemBoolean
- allowModifyContents
- Type: SystemBoolean
- allowPrinting
- Type: SystemBoolean
- allowScreenReaders
- Type: SystemBoolean
See Also