XFINIUM.PDF Documentation
DecryptFile(Stream,String,Stream,Boolean) Method



Xfinium.Pdf.Utilities Namespace > PdfEncryptor Class > DecryptFile Method : DecryptFile(Stream,String,Stream,Boolean) Method
Stream containing the input PDF file.
Password for decrypting the input file.
Stream for storing the decrypted PDF file.
If true then the internal structure of the output PDF file is compressed.
Decrypts the PDF file given in input stream and saves the encrypted file to output stream.
Syntax
'Declaration
 
Public Overloads Shared Sub DecryptFile( _
   ByVal input As Stream, _
   ByVal inputPassword As String, _
   ByVal output As Stream, _
   Optional ByVal enableObjectCompression As Boolean _
) 
'Usage
 
Dim input As Stream
Dim inputPassword As String
Dim output As Stream
Dim enableObjectCompression As Boolean
 
PdfEncryptor.DecryptFile(input, inputPassword, output, enableObjectCompression)
public static void DecryptFile( 
   Stream input,
   string inputPassword,
   Stream output,
   bool enableObjectCompression
)

Parameters

input
Stream containing the input PDF file.
inputPassword
Password for decrypting the input file.
output
Stream for storing the decrypted PDF file.
enableObjectCompression
If true then the internal structure of the output PDF file is compressed.
Requirements

Supported .NET Platforms: .NET 4.0 and higher, Windows Forms, ASP.NET, Windows Presentation Foundation 4.x, Silverlight 5, WinRT, Universal Windows Platform, Xamarin Mac, iOS & Android, Portable Class Library, .NET Core, .NET Standard


Target Platforms:Windows 10, Windows 8.1, Windows 8 , Windows 7, Windows Vista SP1 or later, Windows Server 2008, Windows Server 2008 R2

See Also

Reference

PdfEncryptor Class
PdfEncryptor Members
Overload List