Package

org.overviewproject.pdfocr

pdf

Permalink

package pdf

Visibility
  1. Public
  2. All

Type Members

  1. case class HocrLine(boundingBox: Rectangle, words: Seq[HocrWord]) extends Product with Serializable

    Permalink
  2. class HocrParser extends Traversable[HocrLine]

    Permalink

    Reads hOCR output from Tesseract.

    Reads hOCR output from Tesseract.

    This doesn't handle hOCR in general. It only handles Tesseract's hOCR output.

    Usage:

    val parser = new HocrParser(input) parser.foreach { line => line.foreach { word => System.out.println(s"Word ${word.text} at (${word.boundingBox.x}, ${word.boundingBox.y})") } }

  3. case class HocrWord(boundingBox: Rectangle, text: String) extends Product with Serializable

    Permalink
  4. class PdfDocument extends AnyRef

    Permalink

    A PDF document.

    A PDF document.

    This class is intended to be created via PdfDocument.load(...), and its asynchronous methods use the ExecutionContext passed to PdfDocument.load(...).

    You must call PdfDocument.close when finished.

  5. class PdfPage extends AnyRef

    Permalink

    A page of a PDF document.

    A page of a PDF document.

    A PDF document can throw a PdfInvalidException at any time during reading.

    A PdfPage will only be valid so long as its parent PdfDocument's close method has not been called.

Value Members

  1. object HocrParser

    Permalink
  2. object PdfDocument

    Permalink
  3. object PdfPage

    Permalink

Ungrouped