Bug 329807 - text selection gets confused in two columns document that has graphics
Summary: text selection gets confused in two columns document that has graphics
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.17.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 331235 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-01-10 13:03 UTC by roberto.bernetti
Modified: 2014-04-20 22:13 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.13.0


Attachments
Screenshot from 2014-01-11 17:01:35.png (300.28 KB, image/png)
2014-01-11 16:12 UTC, roberto.bernetti
Details
pdf file with two-column layout (383.83 KB, application/pdf)
2014-01-11 22:41 UTC, roberto.bernetti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description roberto.bernetti 2014-01-10 13:03:33 UTC
the highlighting tool, on a two-columns pdf document, highlights  both columns instead one as expected  

Reproducible: Always

Actual Results:  
both columns are highlighted 

Expected Results:  
one column should be highlighted
Comment 1 Albert Astals Cid 2014-01-11 12:54:21 UTC
I'm not sure i understand your problem, can you please attach a screenshot of what you mean?
Comment 2 roberto.bernetti 2014-01-11 16:12:06 UTC
Created attachment 84570 [details]
Screenshot from 2014-01-11 17:01:35.png

On sab, 2014-01-11 at 12:54 +0000, Albert Astals Cid wrote:
> https://bugs.kde.org/show_bug.cgi?id=329807
> 
> Albert Astals Cid <aacid@kde.org> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|UNCONFIRMED                 |NEEDSINFO
>                  CC|                            |aacid@kde.org
>          Resolution|---                         |WAITINGFORINFO
> 
> --- Comment #1 from Albert Astals Cid <aacid@kde.org> ---
> I'm not sure i understand your problem, can you please attach a screenshot of
> what you mean?
> 

The example is a two-column paper I would to highlight some rows on the
left column.
Instead I got both, left and right, columns highlighted. 
I red, on some forum, that from version 0.14 the correct behavior is
what I would.
Comment 3 Albert Astals Cid 2014-01-11 16:43:55 UTC
Does text selection work in that file?
Comment 4 Albert Astals Cid 2014-01-11 16:44:06 UTC
Or even better, can you attach the file?
Comment 5 roberto.bernetti 2014-01-11 22:41:29 UTC
Created attachment 84579 [details]
pdf file with two-column layout
Comment 6 roberto.bernetti 2014-01-11 22:44:51 UTC
Text selection works. If the box span over the two column selected text is from both columns.
Comment 7 roberto.bernetti 2014-01-12 13:40:40 UTC
What I mean is that if you would  to highlight some rows on the left column only (one sentence for example) and you drag the tool for more than one row  you get selected the rows but on both columns, the left and the right ones
Comment 8 Albert Astals Cid 2014-01-12 18:24:53 UTC
So basically the text selection algorithm gets confused with pages that have graphics, works fine in page 1 but fails to detect the two columns in page 4 as depicted in the attachment from comment 2
Comment 9 Stan 2014-01-23 13:28:46 UTC
Wow, I've been wondering why this bug had been claimed as 'solved' years ago while I've been running into it in every single multi-column document. Of course, most of the pdfs I use have images on every page somewhere. Thanks for looking into this, I feel relieved and hope that this really annoying bug can be fixed soon. As soon as it will, I will be able to do all my annotations in Okular!
Comment 10 florian.bw 2014-02-20 13:50:52 UTC
Same issue for me with Okular version 0.18.2.
Comment 11 florian.bw 2014-02-24 18:19:24 UTC
It seems that the columns are captured correctly when the image spans both columns: on pages with only a column-spanning image on top, this bug does not occur for me.
Comment 12 Albert Astals Cid 2014-02-25 23:04:17 UTC
The algorithm for column cutting has been further improved and the pdf in this file now works fine for me with the okular that will be part of KDE 4.13.0 If you update to such release and still have problems with this file please reopen this bug, if it is with a different file please open a new one.
Comment 13 Albert Astals Cid 2014-03-06 19:01:48 UTC
*** Bug 331235 has been marked as a duplicate of this bug. ***
Comment 14 florian.bw 2014-04-20 22:13:20 UTC
Thank you very much for fixing this issue! It's a really great improvement, and makes okular even more a joy to use. 

I waited until now to get the new okular and kept several PDFs, with which I wanted to test the highlighting. With all PDFs, which have a standard 2 or 3 column layout, it works perfect (those were from the journals PNAS, Statistical Science, Nature, and Bioinformatics). Thanks again.