void render(QPainter &painter) const
Paint the contents of the text box to a painter.
QRect boundingBox() const
Bounding box.
QString direction() const
Text flow direction.
QString language() const
Language of the content of this text box.
QString classType() const
Class of this textBox.
QImage toImage(const QFont &overrideFont, QImage::Format format=QImage::Format_Grayscale8) const
Export this text box as an image.
QByteArray toRawPDFContentStream(const QFont &font, resolution xRes, resolution yRes, length deltaX=length(), length deltaY=length()) const
Return raw PDF text rendering commands.
QString toText() const
Export this text box as text.
QFont suggestFont() const
Suggest font.
Text box, as defined in an HOCR file.
HOCRTextBox()
Constructs an empty text box.
QXmlStreamAttributes attributes() const
Returns the attributes of the textBox.
bool hasText() const
Decide if the text box contains non-trivial text.
QVector< qreal > baselinePolynomial() const
Base line as a polynomial.
qint64 estimateFit(const QFont &font) const
Estimate how well a given font fits the textbox.
QString imageName() const
Image associated with content of this text box.
QString text() const
Text content of the text box.
QPoint baselineReferencePoint() const
Base line reference point.