Class TextHeaderFooter
Defines PDF Header and Footer display options.
TextHeaderFooter uses a logial apporach to rendering Headers and Footers for the most common use cases.
Implements
Namespace: IronPdf
Assembly: IronPdf.dll
Syntax
public class TextHeaderFooter : Object
Constructors
TextHeaderFooter()
Declaration
public TextHeaderFooter()
Properties
CenterText
Sets the centered header text for the PDF document.
Merge meta-data into your header using any of these placeholder strings: {page} {total-pages} {url} {date} {time} {html-title} {pdf-title}
Declaration
public string CenterText { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DrawDividerLine
Adds a horizontal line divider between the header / footer and the page content on every page of the PDF document.
Declaration
public bool DrawDividerLine { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Font
Declaration
public FontTypes Font { get; set; }
Property Value
Type | Description |
---|---|
FontTypes |
FontSize
Font size in px.
Declaration
public double FontSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
LeftText
Sets the left hand side header text for the PDF document.
Merge meta-data into your header using any of these placeholder strings: {page} {total-pages} {url} {date} {time} {html-title} {pdf-title}
Declaration
public string LeftText { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RightText
Sets the right hand side header text for the PDF document.
Merge meta-data into your header using any of these placeholder strings: {page} {total-pages} {url} {date} {time} {html-title} {pdf-title}
Declaration
public string RightText { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Spacing
Vertical spacing between the header and page content in millimeters.
Declaration
public double Spacing { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
Clone()
Clones this instance.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object | System.Object of type SimpleHeaderFooter |