Class MatchedPattern

java.lang.Object
org.openpdf.text.pdf.parser.MatchedPattern

public class MatchedPattern extends Object
  • Field Details

    • text

      private final String text
    • page

      private final int page
    • coordinates

      private final float[] coordinates
  • Constructor Details

    • MatchedPattern

      MatchedPattern(String text, int page, float llx, float lly, float urx, float ury)
      Constructor to pair a strip of text with its bounding box coordinates inside a page. The coordinates system has the origin (0, 0) in the lower left point of the page and uses PDF points as unit measure.
      Parameters:
      text - string
      page - int
      llx - float lower left x coordinate
      lly - float lower left y coordinate
      urx - float upper right x coordinate
      ury - float upper right y coordinate
  • Method Details

    • getText

      public String getText()
    • getPage

      public int getPage()
    • getCoordinates

      public float[] getCoordinates()
    • printCoordinates

      public String printCoordinates()
    • toString

      public String toString()
      Overrides:
      toString in class Object