Table of Contents

Method MovePage

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

MovePage(int, int)

Changes position of the page within the collection of document pages.

public void MovePage(int srcIndex, int destIndex)

Parameters

srcIndex int

Index of the page to move.

destIndex int

The index to move page to.

Remarks

The page being moved is 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 page will be moved to the end of the collection.

Check the Prepend PDF section to know how to reorder pages in a PDF document.