PdfDocument Constructors

Overloads

PdfDocument(Byte[])Initializes a new instance of the PdfDocument class.
PdfDocument(Byte[], String)Initializes a new instance of the PdfDocument class.
PdfDocument(Stream)Initializes a new instance of the PdfDocument class.
PdfDocument(Stream, String)Initializes a new instance of the PdfDocument class.
PdfDocument(String)Initializes a new instance of the PdfDocument class.
PdfDocument(String, String)Initializes a new instance of the PdfDocument class.

PdfDocument(Byte[])

Initializes a new instance of the PdfDocument class.

public PdfDocument(Byte[] data)
Public Sub New (data As Byte())

Parameters

data
Byte[]

A byte array containing the PDF document data.

Licensing Info

This constructor is a DynamicPDF Core Suite Essentials feature. One of the following is required for non-evaluation usage:

Exceptions

PdfParsingException The PDF file cannot be parsed because it is likely corrupt or invalid.

PdfSecurityException The PDF file cannot be read because it is encrypted and the owner password is incorrect or not supplied.

PdfDocument(Byte[], String)

Initializes a new instance of the PdfDocument class.

public PdfDocument(Byte[] data, string password)
Public Sub New (data As Byte(), password As String)

Parameters

data
Byte[]

A byte array containing the PDF document data.

password
String

Owner password of the encrypted PDF document.

Licensing Info

This constructor is a DynamicPDF Core Suite Essentials feature. One of the following is required for non-evaluation usage:

Exceptions

PdfParsingException The PDF file cannot be parsed because it is likely corrupt or invalid.

PdfSecurityException The PDF file cannot be read because it is encrypted and the owner password is incorrect or not supplied.

PdfDocument(Stream)

Initializes a new instance of the PdfDocument class.

public PdfDocument(Stream stream)
Public Sub New (stream As Stream)

Parameters

stream
Stream

Stream object containing the PDF document data.

Licensing Info

This constructor is a DynamicPDF Core Suite Essentials feature. One of the following is required for non-evaluation usage:

Exceptions

PdfParsingException The PDF file cannot be parsed because it is likely corrupt or invalid.

PdfSecurityException The PDF file cannot be read because it is encrypted and the owner password is incorrect or not supplied.

PdfDocument(Stream, String)

Initializes a new instance of the PdfDocument class.

public PdfDocument(Stream stream, string password)
Public Sub New (stream As Stream, password As String)

Parameters

stream
Stream

Stream object containing the PDF document data.

password
String

Owner password of the encrypted PDF document.

Licensing Info

This constructor is a DynamicPDF Core Suite Essentials feature. One of the following is required for non-evaluation usage:

Exceptions

PdfParsingException The PDF file cannot be parsed because it is likely corrupt or invalid.

PdfSecurityException The PDF file cannot be read because it is encrypted and the owner password is incorrect or not supplied.

PdfDocument(String)

Initializes a new instance of the PdfDocument class.

public PdfDocument(string filePath)
Public Sub New (filePath As String)

Parameters

filePath
String

Physical file path of the PDF document.

Licensing Info

This constructor is a DynamicPDF Core Suite Essentials feature. One of the following is required for non-evaluation usage:

Exceptions

PdfParsingException The PDF file cannot be parsed because it is likely corrupt or invalid.

PdfSecurityException The PDF file cannot be read because it is encrypted and the owner password is incorrect or not supplied.

PdfDocument(String, String)

Initializes a new instance of the PdfDocument class.

public PdfDocument(string filePath, string password)
Public Sub New (filePath As String, password As String)

Parameters

filePath
String

Physical file path of the PDF document.

password
String

Owner password of the encrypted PDF document.

Licensing Info

This constructor is a DynamicPDF Core Suite Essentials feature. One of the following is required for non-evaluation usage:

Exceptions

PdfParsingException The PDF file cannot be parsed because it is likely corrupt or invalid.

PdfSecurityException The PDF file cannot be read because it is encrypted and the owner password is incorrect or not supplied.

See Also

PdfDocument
ceTe.DynamicPDF.Merger

In this topic