Bug 27927 - poppler_page_find_text() does works only once on the same page for the same text
Summary: poppler_page_find_text() does works only once on the same page for the same text
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: glib frontend (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-01 09:24 UTC by Peter Szilagyi
Modified: 2010-07-08 09:59 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Peter Szilagyi 2010-05-01 09:24:24 UTC
When poppler_page_find_text(page, text) is called on a page to get the list of matches for the specified text, first a list of matches is returned, but the same call returns NULL (empty list) for the second and any subsequent call. This was not the case with version 0.8.7, it is a regression found on 0.12.*. 

Interestingly, it seems that neither the poppler_page_find_text() nor the TextPage::findText() function was changed between the two releases. Nevertheless, this bug has also been mentioned in the last comment of #2951.
Comment 1 Carlos Garcia Campos 2010-07-05 02:30:21 UTC
Does it still happen for you with poppler 0.14?
Comment 2 Peter Szilagyi 2010-07-05 10:28:24 UTC
Yes, it does. I did not check the poppler source code to see what has been modified since 0.12, but from usability point of view there is no change.
Comment 3 Carlos Garcia Campos 2010-07-08 09:59:37 UTC
Fixed in git master and poppler-0.14 branch. Thanks for reporting.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.