MovePage
IPDFDocument4 :: General document management :: Common

See Also
Collapse All

Relocate existing page to specified position.

Syntax

HRESULT MovePage (
LONG pageNumber,
LONG newPagePosition
)
Parameters
pageNumber
The zero-based number of the page to be relocated.

newPagePosition
Position where the page should be moved.

Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.

Remarks

If newPagePosition is equal to PageCount, page is moved to the end of the page list.

Here is a small sample:

We call MovePage(1, 3):

Page order after relocation:

See Also

Reference