Aspose.Pdf

How to Create EndNotes

An endnote is source citation that refers the readers to a specific place at the end of the paper where they can find out the source of the information or words quoted or mentioned in the paper.

 

When using endnotes, your quoted or paraphrased sentence or summarized material is followed by a superscript number.

 

Note With the release of Aspose.Pdf version 3.4.1 it provides the facility to add an endnotes at the bottom of the page.

 

Please follow the following steps to create an EndNote:

 

 

The following example demonstrates how to add an Endnote in Pdf page.

 

Code Snippet

 

[C#]

 

Pdf pdf = new Pdf();

 

//Create Section

Section sec = pdf.Sections.Add();

 

//Create Text Paragraph

Text text = new Text();                               

 

//Create Segment

Segment segment = new Segment("This is the First Segment");

 

//Create EndNote and Assign an EndNote property of Segment to its object

EndNote endnote1 = new EndNote("Endnotes for First Segment");

segment.EndNote = endnote1;

 

//Add Segment in Text Paragraph

text.Segments.Add(segment);

 

//Add Text in Section

sec.Paragraphs.Add(text);

 

//Save the Pdf

pdf.Save("D:/AsposeTest/EndNoteDemo.pdf");

 

[VB.NET]

 

Dim pdf As Pdf = New Pdf

 

'Create Section

Dim sec As Section = pdf.Sections.Add

 

'Create Text Paragraph

Dim text As Text = New Text

 

'Create Segment

Dim segment As Segment = New Segment("This is the First Segment")

 

'Create EndNote and Assign an EndNote property of Segment to its object

Dim endnote1 As EndNote  = new EndNote("Endnote for First Segment");

segment.EndNote = endnote1;

 

'Add Segment in Text Paragraph

text.Segments.Add(segment)

 

'Add Text in Section

sec.Paragraphs.Add(text)

 

'Save the Pdf

pdf.Save("D:/AsposeTest/EndNotedemo.pdf")

 

To create EndNotes using the XML. Please check the following:

 

[XML]

 

  <?xml version="1.0" encoding="utf-8" ?>

<Pdf xmlns="Aspose.Pdf">

    <Section PageHeight="1684">

        <Text MarginTop="0">

            <Segment>This is the First Segment</Segment>

            <Segment>

                <EndNote fontsize="7">

                    <Segment>End Note for first Segment</Segment>

                </EndNote>

            </Segment>       

        </Text>

    </Section>

</Pdf>

 

To get further details about EndNotes please visit our online API documents.