Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Thu Oct 19, 2017 2:43 pm

Does Spire.PDF support Foot Notes and End Notes?

Jacob77
 
Posts: 1
Joined: Thu Oct 19, 2017 2:41 pm

Fri Oct 20, 2017 7:02 am

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
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Oct 24, 2017 9:37 am

Hi Jacob77,

Greetings from E-iceblue.
Did you try the solution I provided ? Did it help you solve the issue ?

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.PDF