DrawOptions
The configuration options for the drawDOM
method.
avoidLinks? boolean | string (default: false)
A flag that indicates whether to produce clickable hyperlinks in the exported PDF file (see example). You can also pass a CSS selector as an argument. All matching links are ignored.
forcePageBreak? string
An optional CSS selector that specifies the elements which cause the page breaks (see example).
keepTogether? string
An optional CSS selector that specifies the elements which should not be split across the pages (see example).
landscape? boolean (default: false)
A flag indicating if the page should be in a landscape orientation. By default, the page is in a portrait orientation.
margin? PageMargin
Specifies the margins of the page (numbers or strings with units).
paperSize? PaperSize (default: "auto")
The paper size for automatic page breaking. The default "auto"
configuration means that the paper size is determined by the content.
repeatHeaders? boolean
Specifies if the <thead>
elements of the tables should be repeated on each page.
scale? number | number[] | any
A scale factor that will be applied to the elements (see example). Can be set to a number, array ([ xScale, yScale ]
), or an object ({ x: xScale, y: yScale }
).
template? string | (context: any) => string
The page template for multi-page output.