Method ExtractInPlace
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
pathstringThe PDF to rewrite.
pagesPageRangeThe 1-based pages to keep.
optionsPdfAssemblyOptionsThe assembly settings, or null for the defaults.
Returns
- PdfAssemblyResult
What was produced, and everything that could not be carried.
Exceptions
- ArgumentNullException
pathis null.