package pdf
- Alphabetic
- Public
- All
Type Members
- case class HocrLine(boundingBox: Rectangle, words: Seq[HocrWord]) extends Product with Serializable
-
class
HocrParser extends Traversable[HocrLine]
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})") } }
- case class HocrWord(boundingBox: Rectangle, text: String) extends Product with Serializable
-
class
PdfDocument extends AnyRef
A PDF document.
A PDF document.
This class is intended to be created via
PdfDocument.load(...), and its asynchronous methods use the ExecutionContext passed toPdfDocument.load(...).You must call PdfDocument.close when finished.
-
class
PdfPage extends AnyRef
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
closemethod has not been called.
Value Members
- object HocrParser
- object PdfDocument
- object PdfPage