Click or drag to resize

PDFDocMovePages Method (Int32, PDFDoc, PageSet, 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,
	PageSet sourcePageSet,
	PDFDocInsertFlag 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
sourcePageSet
Type: pdftron.PDFPageSet
a collection 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