PdfTemplate Class

Represents a reusable template object

Definition

Namespace: EvoPdf.Chromium
Assembly: EvoPdf.Chromium (in EvoPdf.Chromium.dll) Version: 12.5.0
C#
public class PdfTemplate
Inheritance
Object    PdfTemplate

Properties

Height Gets or sets the height of the PDF template. The default value is 0
HorizontalAlign Specifies the horizontal alignment of the template on the PDF page. Takes precedence over the X coordinate when set to a value other than None. The default value is None
Opacity The opacity as a value between 0 and 1 to be applied to entire template. For example, setting this property to 0.75 will lower the opacity to 75% . The default value is 1 and the rendered PDF content will have its original opacity
ShowInEvenPages Specifies whether the template should be displayed on even-numbered pages of the PDF document The default value is true
ShowInFirstPage Specifies whether the template should be displayed on the first page of the PDF document The default value is true
ShowInOddPages Specifies whether the template should be displayed on odd-numbered pages of the PDF document The default value is true
VerticalAlign Specifies the vertical alignment of the template on the PDF page. Takes precedence over the Y coordinate when set to a value other than None. The default value is None
Width Gets or sets the width of the PDF template. This property is ignored for header and footer templates because the width is determined from PDF page width
X Gets or sets the X position of the template in the PDF pages relative to the top left of the page. This property is ignored for header and footer templates
Y Gets or sets the Y position of the template in the PDF pages relative to the top left of the page. This property is ignored for header and footer templates

Methods

AddRectangle Draws a rectangle into this template
AddText Adds a text element to the PDF template
Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
ToString
(Inherited from Object)

See Also