swap

public final void swap(int index1, int index2)

Swaps two pages in the document.

Parameters

index1

The 0-based index of the first page.

index2

The 0-based index of the second page.

Throws

Thrown when either index is out of range.

Thrown when the operation fails.