Margins

external interface Margins(source)

Properties

Link copied to clipboard
abstract external var bottom: Double?

The bottom margin of the printed web page, in pixels.

Link copied to clipboard
abstract external var left: Double?

The left margin of the printed web page, in pixels.

Link copied to clipboard
abstract external var marginType: MarginsMarginType?

Can be default, none, printableArea, or custom. If custom is chosen, you will also need to specify top, bottom, left, and right.

Link copied to clipboard
abstract external var right: Double?

The right margin of the printed web page, in pixels.

Link copied to clipboard
abstract external var top: Double?

The top margin of the printed web page, in pixels.