See Pupeteer docs for further details regarding the exposed options.

Note:
You can only use the options mentioned here even though the Pupeteer docs describe some more.
Please let us know if you'd need other options as well.

Hierarchy

  • Html2PdfOptions

Properties

displayHeaderFooter?: boolean
footerTemplate?: string

One of Html2PdfFormats.
If set, takes priority over width or height options.
If neither format, nor width or height are set, A4 is used as fallback.

headerTemplate?: string
height?: string | number

Only takes effect if no format is set

landscape?: boolean
margin?: {
    bottom?: string | number;
    left?: string | number;
    right?: string | number;
    top?: string | number;
}

Type declaration

  • Optional bottom?: string | number
  • Optional left?: string | number
  • Optional right?: string | number
  • Optional top?: string | number
width?: string | number

Only takes effect if no format is set

Generated using TypeDoc