Lines 1-14
Link Here
|
1 |
--- src/ApvlvFile.cpp.orig 2011-08-12 10:22:23.000000000 +0200 |
1 |
--- src/ApvlvFile.cpp.orig 2011-06-24 11:30:12.000000000 +0400 |
2 |
+++ src/ApvlvFile.cpp 2011-08-12 10:24:26.000000000 +0200 |
2 |
+++ src/ApvlvFile.cpp 2011-10-10 01:01:26.000000000 +0400 |
3 |
@@ -273,9 +273,9 @@ ApvlvPDF::ApvlvPDF (const char *filename |
3 |
@@ -302,9 +302,9 @@ |
4 |
|
4 |
|
5 |
bool ApvlvPDF::pagetext (int pn, int x1, int y1, int x2, int y2, char **out) |
5 |
bool ApvlvPDF::pagetext (int pn, int x1, int y1, int x2, int y2, char **out) |
6 |
{ |
6 |
{ |
7 |
- PopplerRectangle rect = { x1, y1, x2, y2 }; |
7 |
- PopplerRectangle rect = { x1, y1, x2, y2 }; |
8 |
PopplerPage *page = poppler_document_get_page (mDoc, pn); |
8 |
PopplerPage *page = poppler_document_get_page (mDoc, pn); |
9 |
- *out = poppler_page_get_text (page, POPPLER_SELECTION_WORD, &rect); |
9 |
- *out = poppler_page_get_text (page, POPPLER_SELECTION_WORD, &rect); |
10 |
+ PopplerRectangle rect = { x1, y2, x2, y1 }; |
10 |
+ PopplerRectangle rect = { x1, y2, x2, y1 }; |
11 |
+ *out = poppler_page_get_selected_text (page, POPPLER_SELECTION_WORD, &rect); |
11 |
+ *out = poppler_page_get_selected_text (page, POPPLER_SELECTION_WORD, &rect); |
12 |
if (*out != NULL) |
12 |
if (*out != NULL) |
13 |
{ |
13 |
{ |
14 |
return true; |
14 |
return true; |