This sample shows how to interchange positions of two pages in a PDF document using Docotic.Pdf library.
Use the PdfDocument.SwapPages method to exchange positions of two pages.
To change positions of a range of pages, use one of the PdfDocument.MovePages methods. You can move exactly one page to a new position using the PdfDocument.MovePage method.