Footnote numbers appearing in text are not superscripts- it just appears as a normal text

Hi Team,
I am using the below code for adding footnote but it doesn’t seem working properly.It has following two issues:

  1. Footnote numbers appearing in text are not superscripts, it just appears as a normal text.(for ex:

Some text is added.[1]

  1. At the end of the page, footnote value/text doesn’t appear with numbered list. for ex::
    ---------------------------------
    Footnote text.

Code:

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Write("Some text is added.");

Footnote footnote = new Footnote(doc, FootnoteType.Footnote);
builder.CurrentParagraph.AppendChild(footnote);
footnote.Paragraphs.Add(new Paragraph(doc));
footnote.FirstParagraph.Runs.Add(new Run(doc, "Footnote text."));

// Save the document.
doc.Save(DataDir + "Section.CreateFootnoteSample Out.doc");

Please find the attached output word file for the same.

Note: It works when I use InsertFootnote() method of document builder. But due to some reasons, I don’t want to use InsertFootnote() method.
builder.InsertFootnote(FootnoteType.Footnote, "Footnote text.")

Hi Pradeep,

Thanks for your inquiry. I have tested the scenario and have managed to reproduce the same issue at my side. For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-11017. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hi Pradeep,

Thanks for your patience. It is to inform you that the issue which are facing is actually not a bug in
Aspose.Words. So, we have closed this issue (WORDSNET-11017) as ‘Not a Bug’.

Please use the following code example to add a footnote to a paragraph in the document without using InsertFootnote method. Hope this helps you.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Write("Some text is added.");
Footnote footnote = new Footnote(doc, FootnoteType.Footnote);
builder.CurrentParagraph.AppendChild(footnote);
footnote.Paragraphs.Add(new Paragraph(doc));
Run run = new Run(doc, "" + (char)0x2);
run.Font.Position = 5;
run.Font.Size = 6;
footnote.FirstParagraph.Runs.Add(run);
run = new Run(doc, "Footnote text.");
run.Font.Size = 8;
footnote.FirstParagraph.Runs.Add(run);
footnote.Font.Size = 8;
footnote.Font.Superscript = true;
doc.Save(MyDir + "Out.docx");