ConversionOptions.Footer Property

Gets or sets Footer

public string Footer { get; set; }
Public Property Footer As String

Property Value

String

Examples

Following code will add a footer with the URL on left side and total number of pages on right side of the footer.
ConversionOptions conversionOptions = new ConversionOptions(PageSize.A4, PageOrientation.Portrait, 20);
conversionOption.Footer = "<div style='text-align:left; display:inline-block; padding-right:1em; font-size:15em;'><span class=url></span></div>"
	+ "<div style = 'text-align:center; display:inline-block; padding-right:1em; font-size:15em;'></div>"
	+ "<div style = 'text-align:right; display:inline-block; padding-right:1em; font-size:15em;'><span class=totalPages></span></div>";

Remarks

Default is an empty string which generates no footer. Assigning null to this property will generate default footer by the browser. HTML template for the print footer should be valid HTML markup with following classes used to inject printing values into them:

For example, {span class=title}{/span} would generate span containing the title.

See Also

ConversionOptions
ceTe.DynamicPDF.HtmlConverter

In this topic