Click or drag to resize
Pdf Library for .NET

PdfTemplateCollectionAdd(Single, Single) Method

Adds a new template with the specified width and height to the pdf document templates collection.

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

Parameters

width  Single
The pdf template width.
height  Single
The pdf template height.

Return Value

PdfTemplate
The newly added pdf template.
Remarks
The template location is top left corner of the pdf page. Use Add(RectangleF) to specify another location for the template.
See Also