Class: PDFium::BoundingBox

Inherits:
Object
  • Object
show all
Defined in:
lib/pdfium/bounding_box.rb

Overview

The size of an object. Used with both Page and Image

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(l, r, t, b) ⇒ BoundingBox

Left, Right, Top, Bottom



10
11
12
# File 'lib/pdfium/bounding_box.rb', line 10

def initialize(l,r,t,b)
    @left=l; @right=r; @top=t; @bottom=b
end

Instance Attribute Details

#bottomObject (readonly)

dimensions for the BoundingBox. Fixnum given in terms of points



7
8
9
# File 'lib/pdfium/bounding_box.rb', line 7

def bottom
  @bottom
end

#leftObject (readonly)

dimensions for the BoundingBox. Fixnum given in terms of points



7
8
9
# File 'lib/pdfium/bounding_box.rb', line 7

def left
  @left
end

#rightObject (readonly)

dimensions for the BoundingBox. Fixnum given in terms of points



7
8
9
# File 'lib/pdfium/bounding_box.rb', line 7

def right
  @right
end

#topObject (readonly)

dimensions for the BoundingBox. Fixnum given in terms of points



7
8
9
# File 'lib/pdfium/bounding_box.rb', line 7

def top
  @top
end