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



Xfinium.Pdf.Utilities Namespace > PdfEncryptor Class > DecryptFile Method : DecryptFile(String,String,String,Boolean) Method
Path to the input PDF file.
Password for decrypting the input file.
Path to 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 inputFileName As String, _
   ByVal inputPassword As String, _
   ByVal outputFileName As String, _
   Optional ByVal enableObjectCompression As Boolean _
) 
'Usage
 
Dim inputFileName As String
Dim inputPassword As String
Dim outputFileName As String
Dim enableObjectCompression As Boolean
 
PdfEncryptor.DecryptFile(inputFileName, inputPassword, outputFileName, enableObjectCompression)

Parameters

inputFileName
Path to the input PDF file.
inputPassword
Password for decrypting the input file.
outputFileName
Path to 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