Please check following sample code for adding FootNotes. Moreover, FootNotes will appear on the page you linked to.
// create Document instance<o:p></o:p>
Document doc = new Document();
// add page to pages collection of
PDF
Page page = doc.getPages().add();
// create GraphInfo object
com.aspose.pdf.GraphInfo graph = new
com.aspose.pdf.GraphInfo();
// set line width as 2
graph.setLineWidth(2);
// set the color for graph object
graph.setColor(com.aspose.pdf.Color.getRed());
// set dash array value as 3
graph.setDashArray(new int[] { 3 });
// set dash phase value as 1
graph.setDashPhase(1);
// set footnote line style for page
as graph
page.setNoteLineStyle(graph);
// create TextFragment instance
TextFragment text = new TextFragment("Hello
World");
// set FootNote value for
TextFragment
text.setFootNote(new com.aspose.pdf.Note("foot note for
test text 1"));
// add TextFragment to paragraphs
collection of first page of document
page.getParagraphs().add(text);
// create second TextFragment
text = new TextFragment("Aspose.Pdf
for .NET");
// set FootNote for second text
fragment
text.setFootNote(new com.aspose.pdf.Note("foot note for
test text 2"));
// add second text fragment to
paragraphs collection of PDF file
page.getParagraphs().add(text);
// save the PDF file
doc.save(myDir+"CustomFootNote_Line.pdf");
Please feel free to contact us for any further assistance.
Best Regards,