Table of Contents

Method Merge

Namespace
DocWright.Formats.Pdf
Assembly
DocWright.Formats.Pdf.dll

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

sources IReadOnlyList<byte[]>

The source PDFs' bytes, in the order they should appear.

output Stream

A writable stream for the result.

options PdfAssemblyOptions

The assembly settings, or null for the defaults.

Returns

PdfAssemblyResult

What was produced, and everything that could not be carried.

Exceptions

ArgumentNullException

sources or output is null.

ArgumentException

sources is 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

sourcePaths IReadOnlyList<string>

The source PDFs' paths, in the order they should appear.

outputPath string

The path to write.

options PdfAssemblyOptions

The assembly settings, or null for the defaults.

Returns

PdfAssemblyResult

What was produced, and everything that could not be carried.

Exceptions

ArgumentNullException

sourcePaths or outputPath is null.

ArgumentException

sourcePaths is empty.