Want to quickly learn? This fast application programming interfaces of ByteScout PDF Suite for VB.NET plus the guidelines and the code below will help you quickly learn how to reorder pages in pdf with pdf sdk. Follow the instructions from scratch to work and copy the VB.NET code. Further improvement of the code will make it more robust.
ByteScout provides the free trial version of ByteScout PDF Suite along with the documentation and source code samples.
Imports Bytescout.PDF Module Program Sub Main() Try Dim doc As Document = New Document doc.Load("sample.pdf") ' Swap first and second pages: Dim tmp As Page = doc.Pages(1) doc.Pages.Remove(1) doc.Pages.Insert(0, tmp) 'Save output file doc.Save("result.pdf") 'Open output file Process.Start("result.pdf") Catch ex As Exception Console.WriteLine(ex.Message) End Try Console.WriteLine("Press any key to exit...") Console.ReadLine() End Sub End Module