Accusoft PDF Xpress Control v7.0
MovePage Method
A long value which represents the page number to move to the new location in the document.
A long value which represents the page number to move the page to.
Description
Moves a page from one index in the PdfDocument to another location.
Syntax
Visual Basic
Public Sub MovePage( _
   ByVal PageNumber As Long, _
   ByVal ToPageNumber As Long _
) 
Parameters
PageNumber
A long value which represents the page number to move to the new location in the document.
ToPageNumber
A long value which represents the page number to move the page to.
Remarks

This method will move a single page within a PdfDocument object that contains a PDF that has been successfully opened into memory.

The toPageNumber value is the index where the page will be moved. The page that currently resides at this location will be shifted behind the moved page.

To move a page to the beginning of the document, use a toPageNumber parameter value of 0. To move a page to the last page of the document, use a toPageNumber parameter value of 1 beyond the last valid page number. For example, with a document that contains 5 pages, use a toPageNumber parameter of 5 to move a page to the end of the document.

See Also

PdfDocument Object  | PdfDocument Members

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback