Poppler Qt5
0.74.0
|
#include <poppler-qt5.h>
Public Member Functions | |
QRectF | boundingBox () const |
QRectF | charBoundingBox (int i) const |
bool | hasSpaceAfter () const |
TextBox * | nextWord () const |
QString | text () const |
TextBox (const QString &text, const QRectF &bBox) | |
~TextBox () | |
Describes the physical location of text on a document page.
This very simple class describes the physical location of text on the page. It consists of
Poppler::TextBox::TextBox | ( | const QString & | text, |
const QRectF & | bBox | ||
) |
The default constructor sets the text
and the rectangle that contains the text.
Coordinates for the bBox
are in points = 1/72 of an inch.
QRectF Poppler::TextBox::boundingBox | ( | ) | const |
Returns the position of the text, in point, i.e., 1/72 of an inch.
TextBox* Poppler::TextBox::nextWord | ( | ) | const |
Returns the pointer to the next text box, if there is one.
Otherwise, it returns a null pointer.