Click or drag to resize
Pdf Library for .NET

PdfTemplate Class

Represents a template in a pdf document. A template contains elements that are repeated on each page of the pdf document.
Inheritance Hierarchy
SystemObject
  SelectPdfPdfCanvas
    SelectPdfPdfTemplate

Namespace:  SelectPdf
Assembly:  Select.HtmlToPdf (in Select.HtmlToPdf.dll) Version: 24.1
Syntax
public class PdfTemplate : PdfCanvas

The PdfTemplate type exposes the following members.

Properties
  NameDescription
Public propertyAnchoring
Gets or sets the template anchoring settings inside the pdf page.
Public propertyBackground
Controls whether the template is rendered behind the page main content or not.
Public propertyBounds
Gets or sets the template bounds rectangle.
Public propertyClientRectangle
Gets the drawable area of the canvas. The margins, pdf document header and footer are excluded.
(Inherited from PdfCanvas.)
Public propertyDisplayOnEvenPages
Controls the visibility of the template on the even numbered pages of the pdf document.
Public propertyDisplayOnFirstPage
Controls the visibility of the template on the first page of the generated pdf document.
Public propertyDisplayOnOddPages
Controls the visibility of the template on the odd numbered pages of the pdf document.
Public propertyDocking
Gets or sets the template docking style inside the pdf page.
Public propertyFirstPageNumber
Controls the page number for the first page being rendered.
Public propertyForeground
Controls whether the template is rendered in front of the page main content or not.
Public propertyHeight
Gets or sets the height for a custom template.
Public propertyLFN
Internal use only.
Public propertyTotalPagesOffset
Controls the total number of pages offset in the pdf document.
Public propertyWidth
Gets or sets the width for a custom template.
Top
Methods
  NameDescription
Public methodAdd
Adds a pdf element to the template.
(Overrides PdfCanvasAdd(PdfPageElement).)
Public methodMeasureString
Measures the size of the specified string when rendered with the specified font.
(Inherited from PdfCanvas.)
Top
See Also