Method Merge
Merge(IReadOnlyList<byte[]>, Stream, PdfAssemblyOptions?)
Writes one document holding every source's pages, in the order given.
public static PdfAssemblyResult Merge(IReadOnlyList<byte[]> sources, Stream output, PdfAssemblyOptions? options = null)
Parameters
sourcesIReadOnlyList<byte[]>The source PDFs' bytes, in the order they should appear.
outputStreamA writable stream for the result.
optionsPdfAssemblyOptionsThe assembly settings, or null for the defaults.
Returns
- PdfAssemblyResult
What was produced, and everything that could not be carried.
Exceptions
- ArgumentNullException
sourcesoroutputis null.- ArgumentException
sourcesis empty.
Merge(IReadOnlyList<string>, string, PdfAssemblyOptions?)
Writes one document holding every source's pages, in the order given.
public static PdfAssemblyResult Merge(IReadOnlyList<string> sourcePaths, string outputPath, PdfAssemblyOptions? options = null)
Parameters
sourcePathsIReadOnlyList<string>The source PDFs' paths, in the order they should appear.
outputPathstringThe path to write.
optionsPdfAssemblyOptionsThe assembly settings, or null for the defaults.
Returns
- PdfAssemblyResult
What was produced, and everything that could not be carried.
Exceptions
- ArgumentNullException
sourcePathsoroutputPathis null.- ArgumentException
sourcePathsis empty.