keepPages

open fun keepPages(@NonNull pagesToKeep: Set<Integer>): PdfProcessorTask

Keeps only passed pages from document.

Note: This will shift page indices for any other operation accepting page index as a parameter after this!

Return

Processor task describing the page processing progress.

Parameters

pagesToKeep

Pages to keep in the document.