GNOME Bugzilla – Bug 309056
Search function gets confused with this pdf
Last modified: 2005-08-25 20:54:08 UTC
Version details: 0.3.2 Distribution/Version: mandriva cooker Load http://www.cs.vu.nl/~reinout/pdf/TICPP2.pdf in evince. Try to search for the term 'array'. Note that the view is flickering and that regions get highlighted where the search string isn't present at all.
Created attachment 49256 [details] [review] Patch to fix flickering
Created attachment 49284 [details] [review] Updated patch This patch should fix visible problems. To say I don't much like the current state of things. In poppler sometimes orientation is taken in account like in get_size functions, sometimes not, like in find_text function. That is the reason of problems like this one. This looks a bit broken. Of course, it's better to handle orientation and work with portrait coordinates in backends.
Created attachment 49342 [details] another testcase just in case I am adding another test case
Created attachment 49343 [details] the wrong search result the result of searching for 'Session'
Hi bugreports :) Sorry, I don't understand, does the attached patch fixes the problem with your testcase from comment #4 or not?
We really need to fix the mess for gnome 2.12!
Marco, what is needed to fix this patch. Should we fix poppler so that it will return coords in proper orientation when searching? But anyhow can you specify more about what needs to be done?
I reworked that code to take orientation in account before leaving for vacation. I think it worked for some pdf I used as testcases... Guess we should track the problem for this specific pdf now...
Looks like a problem with landscape pdfs.
I sent a patch to poppler list to fix this. Let's keep it open until it's committed though.