Commit 24f131c3 authored by Benoît Minisini's avatar Benoît Minisini

Do not use 'poppler_page_get_text_for_area()' API for older versions of poppler.

[GB.POPPLER]
* BUG: Do not use 'poppler_page_get_text_for_area()' API for older versions of poppler.
parent 0900d16f
......@@ -413,7 +413,7 @@ BEGIN_METHOD(PdfPage_GetText, GB_FLOAT x; GB_FLOAT y; GB_FLOAT w; GB_FLOAT h)
rect.x2 = rect.x1 + VARG(w);
rect.y2 = rect.y1 + VARG(h);
GB.ReturnNewZeroString(poppler_page_get_text_for_area(THIS->current, &rect));
GB.ReturnNewZeroString(poppler_page_get_selected_text(THIS->current, POPPLER_SELECTION_GLYPH, &rect));
END_METHOD
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment