Method ReorderInPlace
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
pathstringThe PDF to rewrite.
orderIReadOnlyList<int>A permutation of 1..N, where N is the source's page count.
optionsPdfAssemblyOptionsThe assembly settings, or null for the defaults.
Returns
- PdfAssemblyResult
What was produced, and everything that could not be carried.
Exceptions
- ArgumentNullException
pathororderis null.- ArgumentException
orderis not a permutation of 1..N.