summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/dependencies/poppler-tqt/poppler-page.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kfile-plugins/dependencies/poppler-tqt/poppler-page.cc')
-rw-r--r--kfile-plugins/dependencies/poppler-tqt/poppler-page.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/kfile-plugins/dependencies/poppler-tqt/poppler-page.cc b/kfile-plugins/dependencies/poppler-tqt/poppler-page.cc
index b6be9bd1..c5be6ddf 100644
--- a/kfile-plugins/dependencies/poppler-tqt/poppler-page.cc
+++ b/kfile-plugins/dependencies/poppler-tqt/poppler-page.cc
@@ -128,8 +128,12 @@ TQString Page::getText(const Rectangle &r) const
PDFRectangle *rect;
TQString result;
::Page *p;
-
+
+#ifdef HAVE_POPPLER_020
+ output_dev = new TextOutputDev(0, gFalse, 0, gFalse, gFalse);
+#else
output_dev = new TextOutputDev(0, gFalse, gFalse, gFalse);
+#endif
data->doc->data->doc.displayPageSlice(output_dev, data->index + 1, 72, 72,
0, false, false, false, -1, -1, -1, -1);
p = data->doc->data->doc.getCatalog()->getPage(data->index + 1);
@@ -159,8 +163,12 @@ TQValueList<TextBox*> Page::textList() const
TextOutputDev *output_dev;
TQValueList<TextBox*> output_list;
-
+
+#ifdef HAVE_POPPLER_020
+ output_dev = new TextOutputDev(0, gFalse, 0, gFalse, gFalse);
+#else
output_dev = new TextOutputDev(0, gFalse, gFalse, gFalse);
+#endif
data->doc->data->doc.displayPageSlice(output_dev, data->index + 1, 72, 72,
0, false, false, false, -1, -1, -1, -1);