Class PdfMerger
Merges multiple PDF documents into a single PDF document using PDFsharp.
public class PdfMerger : IPdfMerger
- Inheritance
-
PdfMerger
- Implements
- Inherited Members
Methods
Merge(IEnumerable<byte[]>)
Merges multiple PDF documents into a single PDF document.
public byte[] Merge(IEnumerable<byte[]> pdfs)
Parameters
pdfsIEnumerable<byte[]>An enumerable collection of PDF documents represented as byte arrays.
Returns
- byte[]
A byte array representing the merged PDF document.
Exceptions
- ArgumentException
No page to merge: the collection is empty or its documents have no pages. A PDF must have at least one page, so there is no valid empty result to return.