1
Description: Fix FTBFS with new libpoppler (0.14.1) that changed the semantics of
2
poppler_page_get_text, and added poppler_page_get_selected_text as a
4
From: Chow Loong Jin <hyperair@ubuntu.com>
5
Bug: https://code.google.com/p/apvlv/issues/detail?id=110
6
Index: apvlv/src/ApvlvFile.cpp
7
===================================================================
8
--- apvlv.orig/src/ApvlvFile.cpp 2011-02-19 21:33:34.461053126 +0800
9
+++ apvlv/src/ApvlvFile.cpp 2011-02-23 01:40:40.246592472 +0800
12
bool ApvlvPDF::pagetext (int pn, int x1, int y1, int x2, int y2, char **out)
14
- PopplerRectangle rect = { x1, y1, x2, y2 };
15
+ PopplerRectangle rect = { x1, y2, x2, y1 };
16
PopplerPage *page = poppler_document_get_page (mDoc, pn);
17
- *out = poppler_page_get_text (page, POPPLER_SELECTION_WORD, &rect);
18
+ *out = poppler_page_get_selected_text (page, POPPLER_SELECTION_WORD, &rect);