Bug 27927

Summary: poppler_page_find_text() does works only once on the same page for the same text
Product: poppler Reporter: Peter Szilagyi <crux.mail>
Component: glib frontendAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

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.