PDFMargin

Specifies the margins of the page (numbers or strings with units).

The supported units are:

  • "mm"
  • "cm"
  • "in"
  • "pt" (default)

bottom? number | string

The bottom margin.

Numbers are treated as points ("pt").

The supported units are:

  • "mm"
  • "cm"
  • "in"
  • "pt" (default).

left? number | string

The bottom margin.

Numbers are treated as points ("pt").

The supported units are:

  • "mm"
  • "cm"
  • "in"
  • "pt" (default).

right? number | string

The right margin.

Numbers are treated as points ("pt").

The supported units are:

  • "mm"
  • "cm"
  • "in"
  • "pt" (default).

top? number | string

The top margin.

Numbers are treated as points ("pt").

The supported units are:

  • "mm"
  • "cm"
  • "in"
  • "pt" (default).