class

Playwright::Page::PdfOptions::Margin

Inherits JSON::Serializable / Reference / Object

Constructors

new(top : Nil | String = nil, right : Nil | String = nil, bottom : Nil | String = nil, left : Nil | String = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

bottom

Bottom margin, accepts values labeled with units. Defaults to 0.

Source
bottom=(bottom : String | Nil)

Bottom margin, accepts values labeled with units. Defaults to 0.

Source
left

Left margin, accepts values labeled with units. Defaults to 0.

Source
left=(left : String | Nil)

Left margin, accepts values labeled with units. Defaults to 0.

Source
right

Right margin, accepts values labeled with units. Defaults to 0.

Source
right=(right : String | Nil)

Right margin, accepts values labeled with units. Defaults to 0.

Source
top

Top margin, accepts values labeled with units. Defaults to 0.

Source
top=(top : String | Nil)

Top margin, accepts values labeled with units. Defaults to 0.

Source