|
Lines 877-882
poppler_page_find_text_with_options (PopplerPage *page,
Link Here
|
| 877 |
double height; |
877 |
double height; |
| 878 |
TextPage *text_dev; |
878 |
TextPage *text_dev; |
| 879 |
gboolean backwards; |
879 |
gboolean backwards; |
|
|
880 |
gboolean start_at_last = FALSE; |
| 880 |
|
881 |
|
| 881 |
g_return_val_if_fail (POPPLER_IS_PAGE (page), NULL); |
882 |
g_return_val_if_fail (POPPLER_IS_PAGE (page), NULL); |
| 882 |
g_return_val_if_fail (text != NULL, NULL); |
883 |
g_return_val_if_fail (text != NULL, NULL); |
|
Lines 893-899
poppler_page_find_text_with_options (PopplerPage *page,
Link Here
|
| 893 |
|
894 |
|
| 894 |
while (text_dev->findText (ucs4, ucs4_len, |
895 |
while (text_dev->findText (ucs4, ucs4_len, |
| 895 |
gFalse, gTrue, // startAtTop, stopAtBottom |
896 |
gFalse, gTrue, // startAtTop, stopAtBottom |
| 896 |
gTrue, gFalse, // startAtLast, stopAtLast |
897 |
start_at_last, |
|
|
898 |
gFalse, //stopAtLast |
| 897 |
options & POPPLER_FIND_CASE_SENSITIVE, |
899 |
options & POPPLER_FIND_CASE_SENSITIVE, |
| 898 |
backwards, |
900 |
backwards, |
| 899 |
options & POPPLER_FIND_WHOLE_WORDS_ONLY, |
901 |
options & POPPLER_FIND_WHOLE_WORDS_ONLY, |
|
Lines 905-910
poppler_page_find_text_with_options (PopplerPage *page,
Link Here
|
| 905 |
match->x2 = xMax; |
907 |
match->x2 = xMax; |
| 906 |
match->y2 = height - yMin; |
908 |
match->y2 = height - yMin; |
| 907 |
matches = g_list_prepend (matches, match); |
909 |
matches = g_list_prepend (matches, match); |
|
|
910 |
start_at_last = TRUE; |
| 908 |
} |
911 |
} |
| 909 |
|
912 |
|
| 910 |
g_free (ucs4); |
913 |
g_free (ucs4); |
| 911 |
- |
|
|