Encrypt an existing PDF
Namespace:
bioPDF.PdfWriterAssembly: bioPDF.PdfWriter (in bioPDF.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 |
---|
bioPDF.PdfWriter.PdfUtil.encryptPdf = function(printerName, inputFileName, outputFileName, ownerPassword, userPassword, encryptionType, allowAssembly, allowCopy, allowDegradedPrinting, allowFillIn, allowModifyAnnotations, allowModifyContents, allowPrinting, allowScreenReaders); |
Parameters
- printerName
- Type: System..::.String
Name of PDF printer
- inputFileName
- Type: System..::.String
Full path of file to encrypt.
- outputFileName
- Type: System..::.String
Full path of output file.
- ownerPassword
- Type: System..::.String
Owner password for PDF encryption.
- userPassword
- Type: System..::.String
User password for PDF encryption.
- encryptionType
- Type: bioPDF.PdfWriter..::.PdfUtil..::.EncryptionType
Type and streangth of encryption.
- allowAssembly
- Type: System..::.Boolean
Allow assembly.
- allowCopy
- Type: System..::.Boolean
Allow copy to clipboard.
- allowDegradedPrinting
- Type: System..::.Boolean
Allow degraded printing.
- allowFillIn
- Type: System..::.Boolean
Allow fill in.
- allowModifyAnnotations
- Type: System..::.Boolean
Allow modifying annotations.
- allowModifyContents
- Type: System..::.Boolean
Allow modifying contents.
- allowPrinting
- Type: System..::.Boolean
Allow printing.
- allowScreenReaders
- Type: System..::.Boolean
Allow screen readers.