DrawOptions
The configuration options for the drawDOM
method.
Name | Type | Default | Description |
---|---|---|---|
avoidLinks? |
|
|
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? |
|
An optional CSS selector that specifies the elements which cause the page breaks (see example). | |
keepTogether? |
|
An optional CSS selector that specifies the elements which should not be split across the pages (see example). | |
landscape? |
|
|
A flag indicating if the page should be in a landscape orientation. By default, the page is in a portrait orientation. |
margin? |
|
Specifies the margins of the page (numbers or strings with units). | |
paperSize? |
|
|
The paper size for automatic page breaking. The default |
repeatHeaders? |
|
Specifies if the | |
scale? |
|
A scale factor that will be applied to the elements (see example). Can be set to a number, array ( | |
template? |
|
The page template for multi-page output. |