Click or drag to resize
Pdf Library for .NET

PdfTemplateCollectionAdd(Single, Single) Method

Adds a new template with the specified width and height. The template location is the top-left corner of the page; use Add(RectangleF) to specify another location.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.HtmlToPdf.Universal (in SelectPdf.HtmlToPdf.Universal.dll) Version: 26.4
Syntax
public PdfTemplate Add(
	float width,
	float height
)

Parameters

width  Single
The template width, in points.
height  Single
The template height, in points.

Return Value

PdfTemplate
The newly created template.
Remarks
This edition ships no concrete page-element type, so there is no element that can be passed to Add. Use the full SelectPdf edition when a page or a template has to carry drawn content.
See Also