Click or drag to resize
Pdf Library for .NET

PdfTemplateAdd Method

Adds a pdf element to the template.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public override PdfRenderingResult Add(
	PdfPageElement element
)

Parameters

element  PdfPageElement
The page element to be added.

Return Value

PdfRenderingResult
The result of rendering the element.
Example
PdfTemplate footer = doc.Templates.Add(500, 30);
footer.Add(new PdfTextElement(0, 8, "Page {page_number} of {total_pages}",
    PdfFont.CreateStandardFont(PdfStandardFont.Helvetica, 9),
    new PdfColor(80, 80, 80)));
doc.Templates.Footer = footer;
See Also