Aspose.Pdf.Examples.CSharp.AsposePDFFacades.Pages.MakeBooklet.MakeBookletUsingLeftRightPagesAndPaths.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // ExStart:MakeBookletUsingLeftRightPagesAndPaths
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Pages();

            // Create PdfFileEditor object
            PdfFileEditor pdfEditor = new PdfFileEditor();
            // Set left and right pages
            int[] leftPages = new int[] { 1, 5};
            int[] rightPages = new int[] { 2, 3 };
            // Make booklet
            pdfEditor.MakeBooklet(dataDir + "MultiplePages.pdf", dataDir + "MakeBookletUsingLeftRightPagesAndPaths_out.pdf", leftPages, rightPages);
            // ExEnd:MakeBookletUsingLeftRightPagesAndPaths
        }
    }
MakeBookletUsingLeftRightPagesAndPaths