mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #116: Navigate to text
This commit is contained in:
@ -32,6 +32,7 @@ namespace pdf
|
||||
{
|
||||
class PDFTextLayout;
|
||||
class PDFTextLayoutStorage;
|
||||
struct PDFCharacterPointer;
|
||||
|
||||
struct PDFTextCharacterInfo
|
||||
{
|
||||
@ -154,6 +155,18 @@ public:
|
||||
|
||||
void applyTransform(const QTransform& matrix);
|
||||
|
||||
/// Retrieves the bounding QPainterPath between two specified character positions within this block.
|
||||
/// The provided character pointers must point to characters within the current block.
|
||||
/// \param start A reference to the PDFCharacterPointer indicating the start character.
|
||||
/// \param end A reference to the PDFCharacterPointer indicating the end character.
|
||||
/// \param matrix Transformation applied to the path
|
||||
/// \param heightIncreaseFactor Height increase factor for characters
|
||||
/// \return QPainterPath representing the bounding path between the start and end characters.
|
||||
QPainterPath getCharacterRangeBoundingPath(const PDFCharacterPointer& start,
|
||||
const PDFCharacterPointer& end,
|
||||
const QTransform& matrix,
|
||||
PDFReal heightIncreaseFactor) const;
|
||||
|
||||
friend QDataStream& operator<<(QDataStream& stream, const PDFTextBlock& block);
|
||||
friend QDataStream& operator>>(QDataStream& stream, PDFTextBlock& block);
|
||||
|
||||
|
Reference in New Issue
Block a user