Class: RustPdf::PageGeometry

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#crop_boxObject

Returns the value of attribute crop_box

Returns:

  • (Object)

    the current value of crop_box



218
219
220
# File 'lib/rustpdf.rb', line 218

def crop_box
  @crop_box
end

#heightObject

Returns the value of attribute height

Returns:

  • (Object)

    the current value of height



218
219
220
# File 'lib/rustpdf.rb', line 218

def height
  @height
end

#media_boxObject

Returns the value of attribute media_box

Returns:

  • (Object)

    the current value of media_box



218
219
220
# File 'lib/rustpdf.rb', line 218

def media_box
  @media_box
end

#pageObject

Returns the value of attribute page

Returns:

  • (Object)

    the current value of page



218
219
220
# File 'lib/rustpdf.rb', line 218

def page
  @page
end

#rotated_heightObject

Returns the value of attribute rotated_height

Returns:

  • (Object)

    the current value of rotated_height



218
219
220
# File 'lib/rustpdf.rb', line 218

def rotated_height
  @rotated_height
end

#rotated_widthObject

Returns the value of attribute rotated_width

Returns:

  • (Object)

    the current value of rotated_width



218
219
220
# File 'lib/rustpdf.rb', line 218

def rotated_width
  @rotated_width
end

#rotationObject

Returns the value of attribute rotation

Returns:

  • (Object)

    the current value of rotation



218
219
220
# File 'lib/rustpdf.rb', line 218

def rotation
  @rotation
end

#widthObject

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



218
219
220
# File 'lib/rustpdf.rb', line 218

def width
  @width
end