Bug 446194 - Selecting background/watermark text instead of foreground/"real" text
Summary: Selecting background/watermark text instead of foreground/"real" text
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 20.12.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-28 12:02 UTC by audreysafa
Modified: 2021-11-29 21:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Select issue okular (343.28 KB, image/png)
2021-11-28 12:02 UTC, audreysafa
Details
File with some watermarks (1.72 MB, application/pdf)
2021-11-28 12:14 UTC, audreysafa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description audreysafa 2021-11-28 12:02:18 UTC
Created attachment 144029 [details]
Select issue okular

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Open a text pdf with watermarks 
2. Try to select text at the same level of the watermark

OBSERVED RESULT
Unable to select the real text, okular is selecting on the watermark's base, it's selecting the background text

EXPECTED RESULT
We would like to select the "real" text, the foreground text, and not the background one.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Ubuntu 20.04.3 LTS
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Albert Astals Cid 2021-11-28 12:12:21 UTC
Please attach such a PDF file
Comment 2 audreysafa 2021-11-28 12:14:51 UTC
Created attachment 144030 [details]
File with some watermarks
Comment 3 Albert Astals Cid 2021-11-28 20:24:55 UTC
Can you confirm the Okular version you're using?
Comment 4 audreysafa 2021-11-28 20:28:50 UTC
(In reply to Albert Astals Cid from comment #3)
> Can you confirm the Okular version you're using?

Yes, I'm using Okular version 20.12.3
Comment 5 Albert Astals Cid 2021-11-28 20:38:48 UTC
Works fine for me in 21.08.3 https://i.imgur.com/fsPpRUC.png

Please reopen if you update to that version and you can still reproduce the problem.
Comment 6 audreysafa 2021-11-29 21:24:59 UTC
It does work on 21.08.3 also on my side !
I was on Ubuntu 20.04. I had to upgrade my Ubuntu to 21.04, and then 21.10. 
But even then, ubuntu software was only proposing Okular version 20.12.3. Therefore, I downloaded Okular version 21.08.3, using flatpack.
https://flathub.org/apps/details/org.kde.okular

Thank you !