mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
DocDiff application: text bounding boxes
This commit is contained in:
@ -297,6 +297,9 @@ public:
|
||||
/// Returns whole text for this text flow
|
||||
QString getText() const { return m_text; }
|
||||
|
||||
/// Returns character bounding boxes
|
||||
std::vector<QRectF> getBoundingBoxes() const { return m_characterBoundingBoxes; }
|
||||
|
||||
/// Returns text form character pointers
|
||||
/// \param begin Begin character
|
||||
/// \param end End character
|
||||
@ -330,6 +333,7 @@ private:
|
||||
QString m_text;
|
||||
QRectF m_boundingBox;
|
||||
std::vector<PDFCharacterPointer> m_characterPointers;
|
||||
std::vector<QRectF> m_characterBoundingBoxes;
|
||||
};
|
||||
|
||||
/// Text layout of single page. Can handle various fonts, various angles of lines
|
||||
|
Reference in New Issue
Block a user