Using the following example code from the documentation yields the following results (see attachment).
See Footnote 38, it’s text is printed on the next page.
// create Document instance
Document doc = new Document();
// add page to pages collection of PDF
Page page = doc.Pages.Add();
// create GraphInfo object
Aspose.Pdf.GraphInfo graph = new Aspose.Pdf.GraphInfo();
// set line width as 2
graph.LineWidth = 2;
// set the color for graph object
graph.Color = Aspose.Pdf.Color.Red;
// set dash array value as 3
graph.DashArray = new int[] { 3 };
// set dash phase value as 1
graph.DashPhase = 1;
// set footnote line style for page as graph
page.NoteLineStyle = graph;
// create TextFragment instance
TextFragment text = new TextFragment("Hello World");
// set FootNote value for TextFragment
var note = new Note("foot note for test text 1");
text.FootNote = note;
// add TextFragment to paragraphs collection of first page of document
page.Paragraphs.Add(text);
// create second TextFragment
text = new TextFragment("Aspose.Pdf for .NET");
// set FootNote for second text fragment
text.FootNote = new Note("foot note for test text 2");
// add second text fragment to paragraphs collection of PDF file
page.Paragraphs.Add(text);
for (int i = 0; i < 50; i++)
{
// create second TextFragment
text = new TextFragment("Aspose.Pdf for .NET4");
text.FootNote = note;
page.Paragraphs.Add(text);
}
// save the PDF file
doc.Save("c:/publish/CustomFootNote_Line.pdf");
CustomFootNote_Line.pdf (41.2 KB)