Class: RustPdf::TextHit

Inherits:
Struct
  • Object
show all
Defined in:
lib/rustpdf.rb

Overview

One positional text match from #find_text. Coordinates are in PDF points, origin lower-left; +x+/+y+ is the lower-left corner of the box.

Instance Attribute Summary collapse

Instance Attribute Details

#heightObject

Returns the value of attribute height



200
201
202
# File 'lib/rustpdf.rb', line 200

def height
  @height
end

#pageObject

Returns the value of attribute page



200
201
202
# File 'lib/rustpdf.rb', line 200

def page
  @page
end

#textObject

Returns the value of attribute text



200
201
202
# File 'lib/rustpdf.rb', line 200

def text
  @text
end

#widthObject

Returns the value of attribute width



200
201
202
# File 'lib/rustpdf.rb', line 200

def width
  @width
end

#xObject

Returns the value of attribute x



200
201
202
# File 'lib/rustpdf.rb', line 200

def x
  @x
end

#yObject

Returns the value of attribute y



200
201
202
# File 'lib/rustpdf.rb', line 200

def y
  @y
end