Class: RustPdf::PageGeometry
- Inherits:
-
Struct
- Object
- Struct
- RustPdf::PageGeometry
- Defined in:
- lib/rustpdf.rb
Overview
Read-only geometry of one page (from #measure_page / #measure_pages). Sizes
are in PDF points; +width+/+height+ ignore rotation while +rotated_width+/
rotated_height account for it (swapped for 90/270 pages). media_box and
crop_box are PdfRect values.
Instance Attribute Summary collapse
-
#crop_box ⇒ Object
Returns the value of attribute crop_box.
-
#height ⇒ Object
Returns the value of attribute height.
-
#media_box ⇒ Object
Returns the value of attribute media_box.
-
#page ⇒ Object
Returns the value of attribute page.
-
#rotated_height ⇒ Object
Returns the value of attribute rotated_height.
-
#rotated_width ⇒ Object
Returns the value of attribute rotated_width.
-
#rotation ⇒ Object
Returns the value of attribute rotation.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Attribute Details
#crop_box ⇒ Object
Returns the value of attribute crop_box
218 219 220 |
# File 'lib/rustpdf.rb', line 218 def crop_box @crop_box end |
#height ⇒ Object
Returns the value of attribute height
218 219 220 |
# File 'lib/rustpdf.rb', line 218 def height @height end |
#media_box ⇒ Object
Returns the value of attribute media_box
218 219 220 |
# File 'lib/rustpdf.rb', line 218 def media_box @media_box end |
#page ⇒ Object
Returns the value of attribute page
218 219 220 |
# File 'lib/rustpdf.rb', line 218 def page @page end |
#rotated_height ⇒ Object
Returns the value of attribute rotated_height
218 219 220 |
# File 'lib/rustpdf.rb', line 218 def rotated_height @rotated_height end |
#rotated_width ⇒ Object
Returns the value of attribute rotated_width
218 219 220 |
# File 'lib/rustpdf.rb', line 218 def rotated_width @rotated_width end |
#rotation ⇒ Object
Returns the value of attribute rotation
218 219 220 |
# File 'lib/rustpdf.rb', line 218 def rotation @rotation end |
#width ⇒ Object
Returns the value of attribute width
218 219 220 |
# File 'lib/rustpdf.rb', line 218 def width @width end |