Skip to content

PdfFileEx Constructors

Overloads

Name Description
PdfFileEx(String,String) Initializes a new PdfFileEx object from a PDF file.
PdfFileEx(Stream,String) Initializes a new PdfFileEx object from a stream.

PdfFileEx(String,String)

Initializes a new PdfFileEx object from a PDF file.

C#
public PdfFileEx(string fileName, string password)

Parameters

fileName String

Path to the PDF file.

password String

Password for decrypting the PDF file.

PdfFileEx(Stream,String)

Initializes a new PdfFileEx object from a stream.

C#
public PdfFileEx(Stream stream, string password)

Parameters

stream Stream

Stream with the PDF file.

password String

Password for decrypting the PDF file.

Remarks

The 'stream' after the constructor executed can be disposed as the whole file has been loaded.