Bug 331090 - Garbled textselection, okular incorrectly assumes two column layout
Summary: Garbled textselection, okular incorrectly assumes two column layout
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.18.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-13 10:23 UTC by qqqqqqqqq9
Modified: 2014-02-25 22:59 UTC (History)
1 user (show)

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


Attachments
Conflicting pdf-file (10.90 KB, application/pdf)
2014-02-13 10:24 UTC, qqqqqqqqq9
Details
Latex-file used to generate the pdf (2.32 KB, text/x-tex)
2014-02-13 10:26 UTC, qqqqqqqqq9
Details
Screenshot illustrating the garbled selection in okular (55.99 KB, image/png)
2014-02-13 10:27 UTC, qqqqqqqqq9
Details
Screenshot illustrating the garbled paste in libreoffice (44.99 KB, image/png)
2014-02-13 10:28 UTC, qqqqqqqqq9
Details

Note You need to log in before you can comment on or make changes to this bug.
Description qqqqqqqqq9 2014-02-13 10:23:42 UTC
When copying text from a latex-generated pdf, okular treats a one-column text as two column layout. Pasting in libreoffice leads to garbled text. (see screenshots)
Repeating the same task using acroread instead of okular leads to the expected result.
It might be related that the symbols for phone and email cannot be selected (in okular)


Reproducible: Always

Steps to Reproduce:
Does not apply.
Comment 1 qqqqqqqqq9 2014-02-13 10:24:39 UTC
Created attachment 85125 [details]
Conflicting pdf-file
Comment 2 qqqqqqqqq9 2014-02-13 10:26:13 UTC
Created attachment 85126 [details]
Latex-file used to generate the pdf
Comment 3 qqqqqqqqq9 2014-02-13 10:27:29 UTC
Created attachment 85127 [details]
Screenshot illustrating the garbled selection in okular
Comment 4 qqqqqqqqq9 2014-02-13 10:28:33 UTC
Created attachment 85128 [details]
Screenshot illustrating the garbled paste in libreoffice
Comment 5 qqqqqqqqq9 2014-02-13 10:29:24 UTC
Slight changes in the original latex-file cause the problem to disappear.
Comment 6 Albert Astals Cid 2014-02-25 22:59:52 UTC
Git commit a80922d45e66605075a2838ee8836cfe8219bfe7 by Albert Astals Cid, on behalf of Jaan Vajakas.
Committed on 25/02/2014 at 22:57.
Pushed by aacid into branch 'master'.

Improve XY Cut layout recognition code

It was a simple bug in the XY Cut layout recognition code that made it too eager to see columns everywhere.
Also removed the dependence of the layout analysis algorithms on the display DPI (introduced by the recently added feature of using KScreen) to make their behavior more predictable and reproducible.
Related: bug 326207
FIXED-IN: 4.13.0
REVIEW: 115759

M  +45   -31   core/textpage.cpp
M  +147  -101  tests/searchtest.cpp

http://commits.kde.org/okular/a80922d45e66605075a2838ee8836cfe8219bfe7