Skip to main content
Skip table of contents

MovePage Method

Moves a page from one index in the page array to another.

CODE
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.

CODE
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.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.