Table of Contents

Method ReorderInPlace

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

ReorderInPlace(string, IReadOnlyList<int>, PdfAssemblyOptions?)

Rearranges a document's pages, replacing it.

public static PdfAssemblyResult ReorderInPlace(string path, IReadOnlyList<int> order, PdfAssemblyOptions? options = null)

Parameters

path string

The PDF to rewrite.

order IReadOnlyList<int>

A permutation of 1..N, where N is the source's page count.

options PdfAssemblyOptions

The assembly settings, or null for the defaults.

Returns

PdfAssemblyResult

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

Exceptions

ArgumentNullException

path or order is null.

ArgumentException

order is not a permutation of 1..N.