Multiple FootNotes

Evaluating Aspose PDF .NET.

How can I apply multiple Footnotes to a single TextFragment, Table Cell, etc??

Thanks!

@Jacob77

Thanks for contacting support.

Please check following code snippet, in order to add multiple footnote, where I have added multiple TextFragments in Paragraph collection of Note.

Document doc2 = new Document();
Page testPage = doc2.Pages.Add();
TextFragment fragment = new TextFragment("Unit");
fragment.EndNote = new Note("This is footnote");
fragment.EndNote.Paragraphs.Add(new TextFragment("This is second footnote"));
fragment.EndNote.Paragraphs.Add(new TextFragment("This is third footnote"));
fragment.EndNote.TextState = new TextState();
fragment.EndNote.TextState.ForegroundColor = Color.Blue;
testPage.Paragraphs.Add(fragment);
doc2.Save(dataDir + "FooteNoteTest_out.pdf"); 

FooteNoteTest_out.pdf (2.4 KB)

For your reference, an output generated by above code is also attached. In case of any further assistance, please feel free to let us know.

Thanks. Why are there no footnote number for the second and third footnote? This is what I am trying for…see attachment
<a class=“attachment” FooteNoteTest_out.pdf (70.4 KB)
Also noticed you are using EndNote I was using FootNote.

@Jacob77

Thanks for writing back.

We are sorry for the misunderstanding. We have tested the scenario again while adding multiple footnotes in the PDF and observed that footnote numbers were missing in the resultant PDF file. Hence we have logged an investigation ticket as PDFNET-43507 in our issue tracking system. Product team will further look into the details of the logged ticket and share their feedback. As soon as we have some definite updates in this regard, we will let you know.

Document doc2 = new Document();
Page testPage = doc2.Pages.Add();
TextFragment fragment = new TextFragment("Unit");
fragment.FootNote = new Note("This is footnote");
fragment.FootNote.Paragraphs.Add(new TextFragment("This is second footnote"));
fragment.FootNote.Paragraphs.Add(new TextFragment("This is third footnote"));
fragment.FootNote.TextState = new TextState();
fragment.FootNote.TextState.ForegroundColor = Color.Blue;
testPage.Paragraphs.Add(fragment);
doc2.Save(dataDir + "FooteNoteTest_out.pdf");

Please be patient and spare us little time. We are sorry for the inconvenience.