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.Pdf (in Select.Pdf.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
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
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