PdfEncryptor.DecryptFile Method
Overloads
| Name | Description |
|---|---|
| DecryptFile(String,String,String,Boolean) | Decrypts the PDF file given in input stream and saves the encrypted file to output stream. |
| DecryptFile(Stream,String,Stream,Boolean) | Decrypts the PDF file given in input stream and saves the encrypted file to output stream. |
DecryptFile(String,String,String,Boolean)
Decrypts the PDF file given in input stream and saves the encrypted file to output stream.
C#
public static void DecryptFile(string inputFileName, string inputPassword, string outputFileName, bool enableObjectCompression)
Parameters
inputFileName String
Path to the input PDF file.
inputPassword String
Password for decrypting the input file.
outputFileName String
Path to the decrypted PDF file.
enableObjectCompression Boolean
If true then the internal structure of the output PDF file is compressed.
DecryptFile(Stream,String,Stream,Boolean)
Decrypts the PDF file given in input stream and saves the encrypted file to output stream.
C#
public static void DecryptFile(Stream input, string inputPassword, Stream output, bool enableObjectCompression)
Parameters
input Stream
Stream containing the input PDF file.
inputPassword String
Password for decrypting the input file.
output Stream
Stream for storing the decrypted PDF file.
enableObjectCompression Boolean
If true then the internal structure of the output PDF file is compressed.