Class: Layout::PageInfo
- Inherits:
-
Object
- Object
- Layout::PageInfo
Overview
Page size and margins in inches (written as 420.mm). Paper size ranges from 100 to 1200 mm, and margins range from 0 to 40 mm.
Instance Method Summary # collapse
-
#width ⇒ Length
Page width.
-
#width= ⇒ Length, Numeric
Set the paper width, one step undo.
-
#height ⇒ Length
Page height.
-
#height= ⇒ Length, Numeric
Set the page height, with one-step undo.
-
#left_margin ⇒ Length
Default page margin (equal on all sides).
-
#right_margin ⇒ Length
Default page margin (equal on all sides).
-
#top_margin ⇒ Length
Default page margin (equal on all sides).
-
#bottom_margin ⇒ Length
Default page margin (equal on all sides).
-
#left_margin= ⇒ Length, Numeric
Set the page margin, changing all four sides simultaneously, with one-step undo.
-
#right_margin= ⇒ Length, Numeric
Set the page margin, changing all four sides simultaneously.
-
#top_margin= ⇒ Length, Numeric
Set the page margin, changing all four sides simultaneously.
-
#bottom_margin= ⇒ Length, Numeric
Set the page margin, changing all four sides simultaneously.
-
#inspect ⇒ String
A brief description.
Instance Method Details
page_info.width ⇒ Length
Page width.
page_info.width = width
Set the paper width, one step undo.
page_info.height ⇒ Length
Page height.
page_info.height = height
Set the page height, with one-step undo.
page_info.left_margin ⇒ Length
Default page margin (equal on all sides).
page_info.right_margin ⇒ Length
Default page margin (equal on all sides).
page_info.top_margin ⇒ Length
Default page margin (equal on all sides).
page_info.bottom_margin ⇒ Length
Default page margin (equal on all sides).
page_info.left_margin = margin
Set the page margin, changing all four sides simultaneously, with one-step undo.
page_info.right_margin = margin
Set the page margin, changing all four sides simultaneously.
page_info.top_margin = margin
Set the page margin, changing all four sides simultaneously.
page_info.bottom_margin = margin
Set the page margin, changing all four sides simultaneously.
page_info.inspect ⇒ String
A brief description.