Table of Contents

Method ExtractInPlace

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

ExtractInPlace(string, PageRange, PdfAssemblyOptions?)

Reduces a document to the selected pages, replacing it.

public static PdfAssemblyResult ExtractInPlace(string path, PageRange pages, PdfAssemblyOptions? options = null)

Parameters

path string

The PDF to rewrite.

pages PageRange

The 1-based pages to keep.

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 is null.