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:
- Any active DynamicPDF Subscription (Essentials, Professional, Professional Plus or Ultimate).
- A DynamicPDF Core Suite for .NET v12.X Essentials license.
- It can also be used for free with a public link back to www.dynamicpdf.com and with the DynamicPDF Essentials message displaying on the bottom of each page.
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:
- Any active DynamicPDF Subscription (Essentials, Professional, Professional Plus or Ultimate).
- A DynamicPDF Core Suite for .NET v12.X Essentials license.
- It can also be used for free with a public link back to www.dynamicpdf.com and with the DynamicPDF Essentials message displaying on the bottom of each page.
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
Licensing Info
This constructor is a DynamicPDF Core Suite Essentials feature. One of the following is required for non-evaluation usage:
- Any active DynamicPDF Subscription (Essentials, Professional, Professional Plus or Ultimate).
- A DynamicPDF Core Suite for .NET v12.X Essentials license.
- It can also be used for free with a public link back to www.dynamicpdf.com and with the DynamicPDF Essentials message displaying on the bottom of each page.
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
- 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:
- Any active DynamicPDF Subscription (Essentials, Professional, Professional Plus or Ultimate).
- A DynamicPDF Core Suite for .NET v12.X Essentials license.
- It can also be used for free with a public link back to www.dynamicpdf.com and with the DynamicPDF Essentials message displaying on the bottom of each page.
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:
- Any active DynamicPDF Subscription (Essentials, Professional, Professional Plus or Ultimate).
- A DynamicPDF Core Suite for .NET v12.X Essentials license.
- It can also be used for free with a public link back to www.dynamicpdf.com and with the DynamicPDF Essentials message displaying on the bottom of each page.
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:
- Any active DynamicPDF Subscription (Essentials, Professional, Professional Plus or Ultimate).
- A DynamicPDF Core Suite for .NET v12.X Essentials license.
- It can also be used for free with a public link back to www.dynamicpdf.com and with the DynamicPDF Essentials message displaying on the bottom of each page.
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.