Aspose.Pdf.Examples.CSharp.AsposePDF.Pages.InsertEmptyPageAtEnd.Run C# (CSharp) Метод

Run() публичный статический Метод

public static Run ( ) : void
Результат void
        public static void Run()
        {
            // ExStart:InsertEmptyPageAtEnd
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdf_Pages();

            // Open document
            Document pdfDocument1 = new Document(dataDir + "InsertEmptyPageAtEnd.pdf");

            // Insert an empty page at the end of a PDF file
            pdfDocument1.Pages.Add();

            dataDir = dataDir + "InsertEmptyPageAtEnd_out.pdf";
            // Save output file
            pdfDocument1.Save(dataDir);
            // ExEnd:InsertEmptyPageAtEnd
            System.Console.WriteLine("\nEmpty page inserted successfully at the end of document.\nFile saved at " + dataDir);

        }
    }
InsertEmptyPageAtEnd