movePages

open fun movePages(@NonNull pagesToMove: Set<Integer>, @IntRange(from = 0) destinationIndex: Int): PdfProcessorTask

Moves passed pages to a new index in the document. The order of pages in new location is retained.

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

pagesToMove

0-indexed set of page indexes of pages to remove.

destinationIndex

Index of position where pages should be moved to in source document.