Skip to content

PdfFile Constructors

Overloads

Name Description
PdfFile(Stream) Initializes a new PdfFile object from a stream.
PdfFile(Stream,String) Initializes a new PdfFile object from a stream.

PdfFile(Stream)

Initializes a new PdfFile object from a stream.

C#
public PdfFile(Stream stream)

Parameters

stream Stream

Stream with 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.

PdfFile(Stream,String)

Initializes a new PdfFile object from a stream.

C#
public PdfFile(Stream stream, string password)

Parameters

stream Stream

Stream with the PDF file.

password String

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.