Loading...
Searching...
No Matches
TextRange.h
Go to the documentation of this file.
1//---------------------------------------------------------------------------------------
2// Copyright (c) 2001-2025 by Apryse Software Inc. All Rights Reserved.
3// Consult legal.txt regarding legal and license information.
4//---------------------------------------------------------------------------------------
5#ifndef PDFTRON_H_CPPTextRange
6#define PDFTRON_H_CPPTextRange
7
8#include <Common/UString.h>
9#include <C/PDF/TRN_TextRange.h>
10
11namespace pdftron {
12 namespace PDF {
13
29{
30public:
31
40 TextRange(const TextRange& tr);
41
46
50 int GetPageNumber() const;
51
63 std::vector<QuadPoint> GetQuads() const;
64
65#ifndef SWIG
66 int GetQuads(const double* &quads) const;
67#endif
68
74
80 UString GetTextBefore(int count) const;
81
87 UString GetTextAfter(int count) const;
88
92 void Destroy();
93
94
95 //for xamarin use only
96 static TextRange* CreateInternal(ptrdiff_t impl);
97 ptrdiff_t GetHandleInternal();
98
99#ifndef SWIGHIDDEN
100
101//private:
102 TRN_TextRange mp_textrange;
103 //for xamarin use only
104 TextRange(TRN_TextRange impl) : mp_textrange(impl) {}
105#endif
106};
107
108
109#include <Impl/TextRange.inl>
110
111 } // namespace PDF
112} // namespace pdftron
113
114#endif // PDFTRON_H_CPPTextRange
int GetQuads(const double *&quads) const
TextRange(const TextRange &tr)
TextRange(TRN_TextRange impl)
Definition TextRange.h:104
UString GetTextAfter(int count) const
std::vector< QuadPoint > GetQuads() const
TRN_TextRange mp_textrange
Definition TextRange.h:102
static TextRange * CreateInternal(ptrdiff_t impl)
ptrdiff_t GetHandleInternal()
TextRange & operator=(const TextRange &tr)
UString GetText() const
UString GetTextBefore(int count) const