Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Replaces a page at a specific index on the process with another page.

public void ReplacePage(int index, string path);

Classes: Document


Parameters

int index

The zero-based index at which the page should be replaced.

int path

Path pointing to the page to add to the process.


Example

The following example demonstrates replacing the first page of a document with another document by file path.

Process.Document.ReplacePage(0, @"C:\Documents\page.pdf");

Remarks

Throws an InvalidOperationException if called on a GlobalAction process.

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

  • No labels