Skip to content

PdfDocument.Load Method

Overloads

Name Description
Load(String) Loads a PDF file and returns either a fixed document or a portfolio depending on the PDF file type.
Load(String,String) Loads a PDF file and returns either a fixed document or a portfolio depending on the PDF file type.
Load(Stream) Loads a PDF file and returns either a fixed document or a portfolio depending on the PDF file type.
Load(Stream,String) Loads a PDF file and returns either a fixed document or a portfolio depending on the PDF file type.

Load(String)

Loads a PDF file and returns either a fixed document or a portfolio depending on the PDF file type.

C#
public static PdfDocument Load(string fileName)

Parameters

fileName String

Path to source PDF file

Load(String,String)

Loads a PDF file and returns either a fixed document or a portfolio depending on the PDF file type.

C#
public static PdfDocument Load(string fileName, string password)

Parameters

fileName String

Path to source PDF file

password String

Password for decrypting the PDF file

Load(Stream)

Loads a PDF file and returns either a fixed document or a portfolio depending on the PDF file type.

C#
public static PdfDocument Load(Stream stream)

Parameters

stream Stream

Stream that contains the PDF file.

Load(Stream,String)

Loads a PDF file and returns either a fixed document or a portfolio depending on the PDF file type.

C#
public static PdfDocument Load(Stream stream, string password)

Parameters

stream Stream

Stream that contains the PDF file.

password String

Password for decrypting the PDF file