After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 309056 - Search function gets confused with this pdf
Search function gets confused with this pdf
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
0.3.x
Other Linux
: High normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks: 312019
 
 
Reported: 2005-06-26 13:58 UTC by Reinout van Schouwen
Modified: 2005-08-25 20:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix flickering (521 bytes, patch)
2005-07-15 17:45 UTC, Nickolay V. Shmyrev
none Details | Review
Updated patch (1.02 KB, patch)
2005-07-16 12:16 UTC, Nickolay V. Shmyrev
needs-work Details | Review
another testcase (55.13 KB, application/pdf)
2005-07-18 09:54 UTC, bugreports
  Details
the wrong search result (75.23 KB, image/gif)
2005-07-18 09:55 UTC, bugreports
  Details

Description Reinout van Schouwen 2005-06-26 13:58:06 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.
Comment 1 Nickolay V. Shmyrev 2005-07-15 17:45:44 UTC
Created attachment 49256 [details] [review]
Patch to fix flickering
Comment 2 Nickolay V. Shmyrev 2005-07-16 12:16:19 UTC
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.
Comment 3 bugreports 2005-07-18 09:54:22 UTC
Created attachment 49342 [details]
another testcase

just in case I am adding another test case
Comment 4 bugreports 2005-07-18 09:55:10 UTC
Created attachment 49343 [details]
the wrong search result

the result of searching for 'Session'
Comment 5 Nickolay V. Shmyrev 2005-07-20 19:16:49 UTC
Hi bugreports :)

Sorry, I don't understand, does the attached patch fixes the problem with your
testcase from comment #4 or not?
Comment 6 Marco Pesenti Gritti 2005-07-26 12:37:50 UTC
We really need to fix the mess for gnome 2.12!
Comment 7 Nickolay V. Shmyrev 2005-08-07 18:26:38 UTC
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?
Comment 8 Marco Pesenti Gritti 2005-08-16 10:55:44 UTC
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...
Comment 9 Marco Pesenti Gritti 2005-08-22 08:15:03 UTC
Looks like a problem with landscape pdfs.
Comment 10 Marco Pesenti Gritti 2005-08-22 09:03:29 UTC
I sent a patch to poppler list to fix this. Let's keep it open until it's
committed though.