MergeDocument.Merge
Overloads
Merge(Byte[], Byte[], [Optional] MergeOptions, [Optional] MergeOptions) | Merges two PDF documents together. |
Merge(PdfDocument, MergeOptions, PdfDocument, MergeOptions) | Merges two PDF documents together. |
Merge(PdfDocument, PdfDocument) | Merges two PDF documents together. |
Merge(String, MergeOptions, String, MergeOptions) | Merges two PDF documents together. |
Merge(String, String) | Merges two PDF documents together. |
Merge(Byte[], Byte[], [Optional] MergeOptions, [Optional] MergeOptions)
Merges two PDF documents together.
public static MergeDocument Merge(Byte[] firstDocument, Byte[] secondDocument, [MergeOptions firstDocumentOptions = null], [MergeOptions secondDocumentOptions = null])
Shared Function Merge(firstDocument As Byte(), secondDocument As Byte(), Optional firstDocumentOptions As MergeOptions = null, Optional secondDocumentOptions As MergeOptions = null) As MergeDocument
Parameters
- firstDocument
- Byte[]
A PdfDocument class representing the first PDF document.
- secondDocument
- Byte[]
A PdfDocument class representing the second PDF document.
- firstDocumentOptions
- MergeOptions
A MergeOptions object specifying the merge options for the first PDF document.
- secondDocumentOptions
- MergeOptions
A MergeOptions object specifying the merge options for the second PDF document.
Returns
A MergeDocument containing the pages from both PDF documents.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Exceptions
PdfParsingException One or both of the PDF files cannot be parsed because they are likely corrupt or invalid.
Merge(PdfDocument, MergeOptions, PdfDocument, MergeOptions)
Merges two PDF documents together.
public static MergeDocument Merge(PdfDocument firstDocument, MergeOptions firstDocumentOptions, PdfDocument secondDocument, MergeOptions secondDocumentOptions)
Shared Function Merge(firstDocument As PdfDocument, firstDocumentOptions As MergeOptions, secondDocument As PdfDocument, secondDocumentOptions As MergeOptions) As MergeDocument
Parameters
- firstDocument
- PdfDocument
A PdfDocument class representing the first PDF document.
- firstDocumentOptions
- MergeOptions
A MergeOptions object specifying the merge options for the first PDF document.
- secondDocument
- PdfDocument
A PdfDocument class representing the second PDF document.
- secondDocumentOptions
- MergeOptions
A MergeOptions object specifying the merge options for the second PDF document.
Returns
A MergeDocument containing the pages from both PDF documents.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Exceptions
PdfParsingException One or both of the PDF files cannot be parsed because they are likely corrupt or invalid.
Merge(PdfDocument, PdfDocument)
Merges two PDF documents together.
public static MergeDocument Merge(PdfDocument firstDocument, PdfDocument secondDocument)
Shared Function Merge(firstDocument As PdfDocument, secondDocument As PdfDocument) As MergeDocument
Parameters
- firstDocument
- PdfDocument
A PdfDocument class representing the first PDF document.
- secondDocument
- PdfDocument
A PdfDocument class representing the second PDF document.
Returns
A MergeDocument containing the pages from both PDF documents.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Exceptions
PdfParsingException One or both of the PDF files cannot be parsed because they are likely corrupt or invalid.
Merge(String, MergeOptions, String, MergeOptions)
Merges two PDF documents together.
public static MergeDocument Merge(string firstDocumentFilePath, MergeOptions firstDocumentOptions, string secondDocumentFilePath, MergeOptions secondDocumentOptions)
Shared Function Merge(firstDocumentFilePath As String, firstDocumentOptions As MergeOptions, secondDocumentFilePath As String, secondDocumentOptions As MergeOptions) As MergeDocument
Parameters
- firstDocumentFilePath
- String
The physical file path to the first PDF document.
- firstDocumentOptions
- MergeOptions
A MergeOptions object specifying the merge options for the first PDF document.
- secondDocumentFilePath
- String
The physical file path to the second PDF document.
- secondDocumentOptions
- MergeOptions
A MergeOptions object specifying the merge options for the second PDF document.
Returns
A MergeDocument containing the pages from both PDF documents.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Exceptions
PdfParsingException One or both of the PDF files cannot be parsed because they are likely corrupt or invalid.
PdfSecurityException One or both of the PDF files cannot be read because they are encrypted and the owner password is incorrect or not supplied.
Merge(String, String)
Merges two PDF documents together.
public static MergeDocument Merge(string firstDocumentFilePath, string secondDocumentFilePath)
Shared Function Merge(firstDocumentFilePath As String, secondDocumentFilePath As String) As MergeDocument
Parameters
- firstDocumentFilePath
- String
The physical file path to the first PDF document.
- secondDocumentFilePath
- String
The physical file path to the second PDF document.
Returns
A MergeDocument containing the pages from both PDF documents.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Exceptions
PdfParsingException One or both of the PDF files cannot be parsed because they are likely corrupt or invalid.
PdfSecurityException One or both of the PDF files cannot be read because they are encrypted and the owner password is incorrect or not supplied.