Method MovePages
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
MovePages(int, int, int)
Changes positions of all pages in specified range within the collection of document pages.
public void MovePages(int srcIndex, int count, int destIndex)
Parameters
srcIndex
intIndex of the first page in the range.
count
intThe number of consecutive pages in the range.
destIndex
intThe index at which first page in range should be placed.
Remarks
The pages being moved are always placed before page with index specified by
destIndex
parameter. After that the collection of document
pages is compacted by shifting pages towards the beginning of the
collection.
If index specified by destIndex
parameter is equal to the
length of the collection then pages will be moved to the end of the collection.
Check the Prepend PDF section to know how to reorder pages in a PDF document.
MovePages(int[], int)
Changes positions of all pages specified by their indexes within the collection of document pages.
public void MovePages(int[] indexes, int destIndex)
Parameters
indexes
int[]The indexes of the pages to move.
destIndex
intThe index at which first page should be placed.
Remarks
The pages being moved are always placed before page with index specified by
destIndex
parameter. After that the collection of document
pages is compacted by shifting pages towards the beginning of the
collection.
If index specified by destIndex
parameter is equal to the
length of the collection then pages will be moved to the end of the collection.
The array of indexes specified by indexes
must not contain
duplicate entries.
Check the Prepend PDF section to know how to reorder pages in a PDF document.