Aspose.Pdf.Examples.CSharp.AsposePDFFacades.WorkingDocument.PageBreak.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            try
            {
                // ExStart:PageBreak
                // The path to the documents directory.
                string dataDir = RunExamples.GetDataDir_AsposePdfFacades_WorkingDocuments();
                // Instantiate Document instance
                Document doc = new Document(dataDir + "input.pdf");
                // Instantiate blank Document instance
                Document dest = new Document();
                // Create PdfFileEditor object
                PdfFileEditor fileEditor = new PdfFileEditor();
                fileEditor.AddPageBreak(doc, dest, new PdfFileEditor.PageBreak[] 
                { 
                    new PdfFileEditor.PageBreak(1, 450) 
                });
                // Save resultant file
                dest.Save(dataDir + "PageBreak_out.pdf");
                // ExEnd:PageBreak  
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message + "\nThis example will only work if you apply a valid Aspose License. You can purchase full license or get 30 day temporary license from http:// Www.aspose.com/purchase/default.aspx.");
            }
            
        }
        public static void PageBreakWithDestPath()