diff options
Diffstat (limited to 'tdefile-plugins/dependencies/poppler-tqt')
| -rw-r--r-- | tdefile-plugins/dependencies/poppler-tqt/poppler-page.cpp | 12 | ||||
| -rw-r--r-- | tdefile-plugins/dependencies/poppler-tqt/poppler-private.cpp | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tdefile-plugins/dependencies/poppler-tqt/poppler-page.cpp b/tdefile-plugins/dependencies/poppler-tqt/poppler-page.cpp index 7a64af81..75bd59a3 100644 --- a/tdefile-plugins/dependencies/poppler-tqt/poppler-page.cpp +++ b/tdefile-plugins/dependencies/poppler-tqt/poppler-page.cpp @@ -144,7 +144,11 @@ TQString Page::getText(const Rectangle &r) const if (r.isNull()) { rect = p->getCropBox(); +#if (POPPLER_VERSION_C >= 26001000) + s = output_dev->getText(PDFRectangle(rect->x1, rect->y1, rect->x2, rect->y2)); +#else s = output_dev->getText(rect->x1, rect->y1, rect->x2, rect->y2); +#endif } else { @@ -152,7 +156,11 @@ TQString Page::getText(const Rectangle &r) const height = p->getCropHeight(); y1 = height - r.m_y2; y2 = height - r.m_y1; +#if (POPPLER_VERSION_C >= 26001000) + s = output_dev->getText(PDFRectangle(r.m_x1, y1, r.m_x2, y2)); +#else s = output_dev->getText(r.m_x1, y1, r.m_x2, y2); +#endif } # if (POPPLER_VERSION_C >= 25001000) @@ -200,9 +208,13 @@ TQValueList<TextBox*> Page::textList() const for (int i = 0; i < word_list->getLength(); i++) { TextWord *word = word_list->get(i); # endif +# if (POPPLER_VERSION_C >= 26001000) + TQString string = TQString::fromUtf8(word->getText()->c_str()); +# else GooString *word_str = word->getText(); TQString string = TQString::fromUtf8(word_str->GOO_GET_CSTR()); delete word_str; +# endif double xMin, yMin, xMax, yMax; word->getBBox(&xMin, &yMin, &xMax, &yMax); diff --git a/tdefile-plugins/dependencies/poppler-tqt/poppler-private.cpp b/tdefile-plugins/dependencies/poppler-tqt/poppler-private.cpp index d5c028d1..16312a34 100644 --- a/tdefile-plugins/dependencies/poppler-tqt/poppler-private.cpp +++ b/tdefile-plugins/dependencies/poppler-tqt/poppler-private.cpp @@ -25,6 +25,8 @@ #include <tqstring.h> +#include <goo/gmem.h> + #include <Outline.h> #include <Link.h> |
