Click or drag to resize

HtmlHeaderFooterHtmlFragment Field

The Html which will be use to render the Header / Footer. Should be an HTML snippet rather than a complete document. May contain styles & images.

Merge meta-data into the HtmlFragment by putting any of these placeholder strings into the text: {page} {total-pages} {url} {date} {time} {html-title} {pdf-title}. An alternative mail-merge style using the pattern <span class='total-pages'></span> also workd

HtmlFragment is a stand alone HTML document which does not inherit styles or settings from your main HTML content unless LoadStylesAndCSSFromMainHtmlDocument is set true

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: (
public string HtmlFragment

Field Value

Type: String
See Also