Poppler Qt5  0.74.0
Public Member Functions | List of all members
Poppler::TextBox Class Reference

#include <poppler-qt5.h>

Public Member Functions

QRectF boundingBox () const
 
QRectF charBoundingBox (int i) const
 
bool hasSpaceAfter () const
 
TextBoxnextWord () const
 
QString text () const
 
 TextBox (const QString &text, const QRectF &bBox)
 
 ~TextBox ()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ TextBox()

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.

Member Function Documentation

◆ boundingBox()

QRectF Poppler::TextBox::boundingBox ( ) const

Returns the position of the text, in point, i.e., 1/72 of an inch.

Since
0.8

◆ nextWord()

TextBox* Poppler::TextBox::nextWord ( ) const

Returns the pointer to the next text box, if there is one.

Otherwise, it returns a null pointer.


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