Aspose.Pdf.Examples.CSharp.AsposePDF.Text.FootAndEndNotes.CreateEndNotes C# (CSharp) Метод

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

public static CreateEndNotes ( ) : void
Результат void
        public static void CreateEndNotes()
        {
            // ExStart:CreateEndNotes
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdf_Text();
            // Create Document instance
            Document doc = new Document();
            // Add page to pages collection of PDF
            Page page = doc.Pages.Add();
            // Create TextFragment instance
            TextFragment text = new TextFragment("Hello World");
            // Set FootNote value for TextFragment
            text.EndNote = new Note("sample End note");
            // Specify custom label for FootNote
            text.EndNote.Text = " Aspose(2015)";
            // Add TextFragment to paragraphs collection of first page of document
            page.Paragraphs.Add(text);

            dataDir = dataDir + "CreateEndNotes_out.pdf";
            // Save resulting PDF document.
            doc.Save(dataDir);
            // ExEnd:CreateEndNotes
            Console.WriteLine("\nEndNotes created successfully.\nFile saved at " + dataDir);
        }