XFINIUM.PDF Documentation
PdfFile Constructor(Stream,String)



Xfinium.Pdf.Core Namespace > PdfFile Class > PdfFile Constructor : PdfFile Constructor(Stream,String)
Stream with the PDF file.
Password for decrypting the PDF file.
Initializes a new PdfFile object from a stream.
Syntax
'Declaration
 
Public Function New( _
   ByVal stream As Stream, _
   ByVal password As String _
)
'Usage
 
Dim stream As Stream
Dim password As String
 
Dim instance As New PdfFile(stream, password)
public PdfFile( 
   Stream stream,
   string password
)
public:
PdfFile( 
   Stream^ stream,
   String^ password
)

Parameters

stream
Stream with the PDF file.
password
Password for decrypting the PDF file.
Remarks
The PdfFile class is used to extract various objects from the PDF file. The 'stream' must be kept open as long as the PdfFile object is used because the content is read from the stream when the corresponding methods are called.
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

PdfFile Class
PdfFile Members
Overload List