Click or drag to resize
Pdf Library for .NET

PdfDocumentAddTemplate Method (Single, Single)

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

Namespace:  SelectPdf
Assembly:  Select.Pdf (in Select.Pdf.dll) Version: 20.2
Syntax
public PdfTemplate AddTemplate(
	float width,
	float height
)

Parameters

width
Type: SystemSingle
The pdf template width.
height
Type: SystemSingle
The pdf template height.

Return Value

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