'Declaration
Public Overloads Shared Sub EncryptFile( _ ByVal input As Stream, _ ByVal inputPassword As String, _ ByVal output As Stream, _ ByVal securityHandler As PdfSecurityHandler, _ Optional ByVal enableObjectCompression As Boolean _ )
'Usage
Dim input As Stream Dim inputPassword As String Dim output As Stream Dim securityHandler As PdfSecurityHandler Dim enableObjectCompression As Boolean PdfEncryptor.EncryptFile(input, inputPassword, output, securityHandler, enableObjectCompression)
public static void EncryptFile( Stream input, string inputPassword, Stream output, PdfSecurityHandler securityHandler, bool enableObjectCompression )
public: static void EncryptFile( Stream^ input, String^ inputPassword, Stream^ output, PdfSecurityHandler^ securityHandler, bool enableObjectCompression )
Parameters
- input
- Stream containing the input PDF file.
- inputPassword
- Password for the input file if it is encrypted, othewise null.
- output
- Stream for storing the encrypted PDF file.
- securityHandler
- The security handler used for encryption.
- enableObjectCompression
- If true then the internal structure of the output PDF file is compressed.