MovePage Method
Moves a page from one index in the page array to another.
public void MovePage(int index, int newIndex);
Classes: Document
Parameters
int index
Index of the page to move.
int newIndex
Destination index of the moving page.
Example
The following example demonstrates moving the first page of a document to the end of that document. The new index is targeted using the Document.PageCount integer property.
Process.Document.MovePage(0, Process.Document.PageCount);
Remarks
Throws an InvalidOperationException if called on a GlobalAction process.
Throws an IndexOutOfRangeException if the target index is too large for the document.