override protected def writeString()

in app/redact/TextFinder.scala [163:178]


  override protected def writeString(text: String, textPositions: java.util.List[TextPosition]): Unit = {
    find(text.toLowerCase).foreach { case (index, end) =>
      val first = textPositions.get(index)
      val last = textPositions.get(Math.min(textPositions.size() - 1, end - 1))
      locations.append(
        FoundText(
          pageIndex = getCurrentPageNo - 1,
          x1 = first.getX,
          y1 = first.getY,
          x2 = last.getX + last.getWidth,
          y2 = last.getY + last.getHeight,
          text
        )
      )
    }
  }