/
RemovePage Method

RemovePage Method

Removes a page from the process at a specified index and deletes it from the file system.

public void RemovePage(int index);

Classes: Document


Parameters

int index

The zero-based index of the page to remove.


Example

The following example demonstrates removing the first page of a document.

Process.Document.RemovePage(0);

Remarks

Throws an InvalidOperationException if called on a GlobalAction process.

Throws an IndexOutOfRangeException if the target index is too large for the document.

Related content

ClearPages Method
ClearPages Method
More like this
ReplacePage Method
ReplacePage Method
More like this
MovePage Method
MovePage Method
More like this
InsertPage Method
InsertPage Method
More like this
GetPage Method
GetPage Method
More like this
DeleteProcessById Method
DeleteProcessById Method
More like this