Skip to main content
Skip table of contents

MovePage Method

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

public void MovePage(int index, int newIndex);

Classes: Document


int index

Index of the page to move.

int newIndex

Destination index of the moving page.


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);


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.