Click or drag to resize
Pdf Library for .NET

PdfFooterAdd Method

Adds an element to the footer of the pdf document.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.HtmlToPdf.Universal (in SelectPdf.HtmlToPdf.Universal.dll) Version: 26.4
Syntax
public void Add(
	PdfSectionElement element
)

Parameters

element  PdfSectionElement
The element that will be rendered in the pdf footer.
Remarks
There are 3 section elements that can be added to the footer of the pdf document: PdfHtmlSection, PdfTextSection and PdfImageSection.
Example
PdfFooter footer = new PdfFooter();
PdfFont font = PdfFont.CreateStandardFont(PdfStandardFont.Helvetica, 10);
footer.Add(new PdfTextSection(0, 10, "Page {page_number} of {total_pages}", font));
See Also