Table of Contents

Method Open

Namespace
PdfSharp.Pdf.IO
Assembly
PdfSharp.dll

Open(string, PdfDocumentOpenMode, PdfReaderOptions?)

Opens an existing PDF document.

public static PdfDocument Open(string path, PdfDocumentOpenMode openMode, PdfReaderOptions? options = null)

Parameters

path string
openMode PdfDocumentOpenMode
options PdfReaderOptions

Returns

PdfDocument

Open(string, PdfDocumentOpenMode, PdfPasswordProvider, PdfReaderOptions?)

Opens an existing PDF document.

public static PdfDocument Open(string path, PdfDocumentOpenMode openMode, PdfPasswordProvider passwordProvider, PdfReaderOptions? options = null)

Parameters

path string
openMode PdfDocumentOpenMode
passwordProvider PdfPasswordProvider
options PdfReaderOptions

Returns

PdfDocument

Open(string, string, PdfDocumentOpenMode, PdfReaderOptions?)

Opens an existing PDF document.

public static PdfDocument Open(string path, string password, PdfDocumentOpenMode openMode, PdfReaderOptions? options = null)

Parameters

path string
password string
openMode PdfDocumentOpenMode
options PdfReaderOptions

Returns

PdfDocument

Open(string, string?, PdfDocumentOpenMode, PdfPasswordProvider?, PdfReaderOptions?)

Opens an existing PDF document.

public static PdfDocument Open(string path, string? password, PdfDocumentOpenMode openMode, PdfPasswordProvider? passwordProvider, PdfReaderOptions? options = null)

Parameters

path string
password string
openMode PdfDocumentOpenMode
passwordProvider PdfPasswordProvider
options PdfReaderOptions

Returns

PdfDocument

Open(string, PdfReaderOptions?)

Opens an existing PDF document.

public static PdfDocument Open(string path, PdfReaderOptions? options = null)

Parameters

path string
options PdfReaderOptions

Returns

PdfDocument

Open(string, string, PdfReaderOptions?)

Opens an existing PDF document.

public static PdfDocument Open(string path, string password, PdfReaderOptions? options = null)

Parameters

path string
password string
options PdfReaderOptions

Returns

PdfDocument

Open(Stream)

Opens an existing PDF document.

public static PdfDocument Open(Stream stream)

Parameters

stream Stream

Returns

PdfDocument

Open(Stream, string, PdfReaderOptions?)

Opens an existing PDF document.

public static PdfDocument Open(Stream stream, string password, PdfReaderOptions? options = null)

Parameters

stream Stream
password string
options PdfReaderOptions

Returns

PdfDocument

Open(Stream, PdfDocumentOpenMode, PdfReaderOptions?)

Opens an existing PDF document.

public static PdfDocument Open(Stream stream, PdfDocumentOpenMode openMode, PdfReaderOptions? options = null)

Parameters

stream Stream
openMode PdfDocumentOpenMode
options PdfReaderOptions

Returns

PdfDocument

Open(Stream, PdfDocumentOpenMode, PdfPasswordProvider, PdfReaderOptions?)

Opens an existing PDF document.

public static PdfDocument Open(Stream stream, PdfDocumentOpenMode openMode, PdfPasswordProvider passwordProvider, PdfReaderOptions? options = null)

Parameters

stream Stream
openMode PdfDocumentOpenMode
passwordProvider PdfPasswordProvider
options PdfReaderOptions

Returns

PdfDocument

Open(Stream, string?, PdfDocumentOpenMode, PdfReaderOptions?)

Opens an existing PDF document.

public static PdfDocument Open(Stream stream, string? password, PdfDocumentOpenMode openMode, PdfReaderOptions? options = null)

Parameters

stream Stream
password string
openMode PdfDocumentOpenMode
options PdfReaderOptions

Returns

PdfDocument

Open(Stream, string?, PdfDocumentOpenMode, PdfPasswordProvider?, PdfReaderOptions?)

Opens an existing PDF document.

public static PdfDocument Open(Stream stream, string? password, PdfDocumentOpenMode openMode, PdfPasswordProvider? passwordProvider, PdfReaderOptions? options = null)

Parameters

stream Stream
password string
openMode PdfDocumentOpenMode
passwordProvider PdfPasswordProvider
options PdfReaderOptions

Returns

PdfDocument