Class: PDF::Extractor::Page

Inherits:
Object
  • Object
show all
Defined in:
lib/pdf/extractor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Page

Returns a new instance of Page.



58
59
60
61
62
# File 'lib/pdf/extractor.rb', line 58

def initialize(params = {})
	@width    = params[:width]
	@height   = params[:height]
	@elements = []
end

Instance Attribute Details

#elementsObject (readonly)

Returns the value of attribute elements.



56
57
58
# File 'lib/pdf/extractor.rb', line 56

def elements
  @elements
end

#heightObject (readonly)

Returns the value of attribute height.



56
57
58
# File 'lib/pdf/extractor.rb', line 56

def height
  @height
end

#widthObject (readonly)

Returns the value of attribute width.



56
57
58
# File 'lib/pdf/extractor.rb', line 56

def width
  @width
end