mupdf-qt
0.1
Qt5 interface of the popular PDF library MuPDF
|
A text box. More...
#include <mupdf-textbox.h>
Public Member Functions | |
~TextBox () | |
QRectF | boundingBox () const |
Bounding box. More... | |
int | numChars () const |
Number of unicode chars. More... | |
QRectF | charBoundingBox (int index) const |
Get bounding box of a unicode char. More... | |
QString | text () const |
Text string. More... | |
Friends | |
class | Page |
A text box.
A text box contains a list of characters that share a common baseline/transformation. In typical cases a single text box may be enough to represent a complete line. In cases where the text has big gaps in it (perhaps as it crosses columns or tables), a line may be represented by multiple text boxes.
Definition at line 21 of file mupdf-textbox.h.
MuPDF::TextBox::~TextBox | ( | ) |
Definition at line 10 of file mupdf-textbox.cpp.
QRectF MuPDF::TextBox::boundingBox | ( | ) | const |
Bounding box.
Definition at line 18 of file mupdf-textbox.cpp.
QRectF MuPDF::TextBox::charBoundingBox | ( | int | index) | const |
Get bounding box of a unicode char.
index | index of the unicode char(start from 0) |
Definition at line 44 of file mupdf-textbox.cpp.
int MuPDF::TextBox::numChars | ( | ) | const |
Number of unicode chars.
Definition at line 34 of file mupdf-textbox.cpp.
QString MuPDF::TextBox::text | ( | ) | const |
Text string.
Definition at line 56 of file mupdf-textbox.cpp.
|
friend |
Definition at line 42 of file mupdf-textbox.h.