Interface TextAffix

Defines PDF Header and Footer display options.

TextAffix uses a logical approach to rendering Headers and Footers for the most common use cases.

Hierarchy

  • TextAffix

Properties

centerText?: string

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}

dividerLine?: boolean

Adds a horizontal line divider between the header / footer and the page content on every page of the PDF document.

Default

false

dividerLineColor?: string

A html color code for divider line color see dividerLine

Default

#b1b1b1

font?: AffixFonts

Font family. Default is Arial.

fontSize?: number

Font size in px.

Default

10
leftText?: string

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}

rightText?: string

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}

Generated using TypeDoc