mupdf-qt  0.1
Qt5 interface of the popular PDF library MuPDF
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Pages
Public Member Functions | Friends | List of all members
MuPDF::TextBox Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

MuPDF::TextBox::~TextBox ( )

Definition at line 10 of file mupdf-textbox.cpp.

Member Function Documentation

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.

Parameters
indexindex 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.

Friends And Related Function Documentation

friend class Page
friend

Definition at line 42 of file mupdf-textbox.h.


The documentation for this class was generated from the following files: