PDFDocMovePages Method (Int32, PDFDoc, Int32, Int32, PDFDocInsertFlag) |
Moves a range of pages from specified PDFDoc. Pages are deleted from source document after move.
Namespace:
pdftron.PDF
Assembly:
pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax public void MovePages(
int moveBeforeThisPage,
PDFDoc sourceDoc,
int startPage,
int endPage,
PDFDocInsertFlag flag
)
Public Sub MovePages (
moveBeforeThisPage As Integer,
sourceDoc As PDFDoc,
startPage As Integer,
endPage As Integer,
flag As PDFDocInsertFlag
)
public:
virtual void MovePages(
[InAttribute] int moveBeforeThisPage,
[InAttribute] PDFDoc^ sourceDoc,
[InAttribute] int startPage,
[InAttribute] int endPage,
[InAttribute] PDFDocInsertFlag flag
) sealed
function MovePages(moveBeforeThisPage, sourceDoc, startPage, endPage, flag);
Parameters
- moveBeforeThisPage
- Type: SystemInt32
the destination of the move. If less than or equal to 1,
the pages are moved to the beginning of the document. If larger than the number of pages
in the destination document, the pages are moved to the end of the document.
- sourceDoc
- Type: pdftron.PDFPDFDoc
source PDFDoc to move from - startPage
- Type: SystemInt32
start of the page number to move - endPage
- Type: SystemInt32
end of the page number to move - flag
- Type: pdftron.PDFPDFDocInsertFlag
specifies insert options
Remarks MovePages function does not save sourceDoc. It merely delete pages in memeory. For permanent changes,
PDFDoc::Save should be used to save sourceDoc after function exists.
See Also