Hi Jacob77,
Thanks for your inquiry.
Theoretically, there are no FootNotes and EndNotes concepts in PDF, they are just some text.
You could draw text with the calculated position, which is similar to "FootNotes" and "EndNotes" you mentioned. Here is sample code for FootNote, please refer to it.
- Code: Select all
PdfDocument doc = new PdfDocument();
PdfPageBase page = doc.Pages.Add();
PdfFont font = new PdfFont(PdfFontFamily.Helvetica, 10f);
string text = "Welcome to use Spire.PDF";
float OX = 10;
float OY = 20;
page.Canvas.DrawString(text, font, new PdfSolidBrush(Color.Black), OX, OY);
SizeF position1 = font.MeasureString(text);
string Footnote = "1";
PdfSolidBrush brush = new PdfSolidBrush(Color.Green);
PdfFont font1 = new PdfFont(PdfFontFamily.Helvetica, 5f);
page.Canvas.DrawString(Footnote, font1, brush, OX + position1.Width, OY - 3);
page.Canvas.DrawString(Footnote, font1, brush, OX, page.Canvas.ClientSize.Height - 50);
SizeF position2 = font1.MeasureString(Footnote);
page.Canvas.DrawString("E-iceblue", font, new PdfSolidBrush(Color.Black), OX + position2.Width, page.Canvas.ClientSize.Height - 49);
doc.SaveToFile("11923.pdf");
Hope it helps. If there is any question, welcome to get back to us.
Sincerely,
Betsy
E-iceblue support team