Extract pages from PDFs in UWP
The following example shows how to use Editor.Job
to produce a new document that keeps only pages 0 and 2 from a source document:
// Make a job with a source document as input. var editorJob = new PSPDFKit.Document.Editor.Job(sourceDocument); // Keep the first and third pages. await editorJob.KeepPagesAsync(new int[]{ 0, 2 }); // Generate a new document. var newDocumentStorageFile = await PSPDFKit.Document.Editor.Editor.NewStorageFileFromJobAsync(editorJob); // Load this document into a `PdfView`. PdfView.PdfFileSource = newDocumentStorageFile;