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

#height ⇒ Object

Returns the value of attribute height

Returns:

  • (Object) —

    the current value of height



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

def height
  @height
end

#page ⇒ Object

Returns the value of attribute page

Returns:

  • (Object) —

    the current value of page



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

def page
  @page
end

#text ⇒ Object

Returns the value of attribute text

Returns:

  • (Object) —

    the current value of text



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

def text
  @text
end

#width ⇒ Object

Returns the value of attribute width

Returns:

  • (Object) —

    the current value of width



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

def width
  @width
end

#x ⇒ Object

Returns the value of attribute x

Returns:

  • (Object) —

    the current value of x



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

def x
  @x
end

#y ⇒ Object

Returns the value of attribute y

Returns:

  • (Object) —

    the current value of y



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

def y
  @y
end