Bug 157927 - Text selection does not work in non-continuous mode
Summary: Text selection does not work in non-continuous mode
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.6.1
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 162156 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-16 15:38 UTC by Benjamin Eikel
Modified: 2008-05-16 15:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Popup menu after selection. (88.32 KB, image/png)
2008-02-16 15:39 UTC, Benjamin Eikel
Details
Popup menu after selection. (88.23 KB, image/png)
2008-02-16 15:39 UTC, Benjamin Eikel
Details
Same bug with another document. (91.11 KB, image/png)
2008-02-17 11:40 UTC, Benjamin Eikel
Details
Bug with a third document. (95.86 KB, image/png)
2008-02-17 11:41 UTC, Benjamin Eikel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Eikel 2008-02-16 15:38:44 UTC
Version:           0.6.1 (using KDE 4.0.1)
Installed from:    Debian testing/unstable Packages
OS:                Linux

When I select an area in a PDF document with Okular, the popup menu shows an incorrect number of selected characters. The number of characters shown there seems to be related to the pixel size of the selected area. When I select "Copy to clipboard", the text in the clipboard contains the whole document from the selection to the end or some garbage text (depending on the PDF document). The attached images shows the popup menu after the selection has been done.
Comment 1 Benjamin Eikel 2008-02-16 15:39:22 UTC
Created attachment 23596 [details]
Popup menu after selection.
Comment 2 Benjamin Eikel 2008-02-16 15:39:36 UTC
Created attachment 23597 [details]
Popup menu after selection.
Comment 3 Pino Toscano 2008-02-17 10:47:08 UTC
Cannot reproduce, even with the exact document you're using.
Does it happen with every document, or just with that one?
Comment 4 Benjamin Eikel 2008-02-17 11:40:34 UTC
Created attachment 23605 [details]
Same bug with another document.

Document: http://www.mpi-forum.org/docs/mpi2-report.pdf
Comment 5 Benjamin Eikel 2008-02-17 11:41:32 UTC
Created attachment 23606 [details]
Bug with a third document.

Document: http://www.openscenegraph.org/documentation/IMAGE2003/IMAGE_2003.pdf
Comment 6 Benjamin Eikel 2008-02-17 11:42:37 UTC
Hello Pino,

as you can see on the screenshots, the problem happens with other documents too.

Regards,
Benjamin
Comment 7 Pino Toscano 2008-02-17 11:46:00 UTC
I cannot reproduce with those documents.
Which version of the poppler-qt4 library are you using?
Comment 8 Benjamin Eikel 2008-02-17 11:50:05 UTC
Hello Pino,

here is the output of reportbug for dependences of okular:

Versions of packages okular depends on:
ii  kde-icons-oxygen       4:4.0.1-1         Oxygen icon theme for KDE 4
ii  kdebase-runtime        4:4.0.1-1         runtime components from the offici
ii  kdebase-runtime-data   4:4.0.1-1         shared data files for the KDE 4 ba
ii  kdelibs5               4:4.0.1-1         core libraries for all KDE 4 appli
ii  libc6                  2.7-8             GNU C Library: Shared libraries
ii  libfreetype6           2.3.5-1+b1        FreeType 2 font engine, shared lib
ii  libgcc1                1:4.3-20080202-1  GCC support library
ii  libjpeg62              6b-14             The Independent JPEG Group's JPEG
ii  libokularcore1         4:4.0.1-1         libraries for for the okular docum
ii  libpoppler-qt4-2       0.6.4-1           PDF rendering library (Qt 4 based
ii  libqimageblitz4        1:0.0.4-1+b1      KDE/Qt image filter library
ii  libqt4-core            4.3.3-2           Qt 4 core non-GUI functionality ru
ii  libqt4-gui             4.3.3-2           Qt 4 core GUI functionality runtim
ii  libqt4-qt3support      4.3.3-2           Qt 3 compatibility library for Qt
ii  libstdc++6             4.3-20080202-1    The GNU Standard C++ Library v3
ii  zlib1g                 1:1.2.3.3.dfsg-11 compression library - runtime

Regards,
Benjamin
Comment 9 Benjamin Eikel 2008-03-08 16:27:13 UTC
Hello,

I still have the problem with Okular 4.0.2.
Even if I select an empty region with no text the menu which pops up tells me that I can copy hundreds of characters.

Regards,
Benjamin
Comment 10 Benjamin Eikel 2008-03-08 16:32:22 UTC
Hello,

sorry for posting so fast again. But I just discovered something new: In my last post I said that when I select an empty rectangle without text it tells me that there are characters.
I just tried it with a PDF files which was exported from PowerPoint. The PDF file contains two slides which have a black border around them on every page. When I create the selection rectangle outside this black border, it only tells me that I can copy an image, no characters. When I select empty space inside the border, Okular tells me that I can copy some characters.
Maybe this helps somehow.

Regards,
Benjamin
Comment 11 Pino Toscano 2008-03-08 17:33:48 UTC
Document please, otherwise we cannot even try to reproduce the issue.
Comment 12 Benjamin Eikel 2008-03-08 17:51:40 UTC
Hello Pino,

it happens with this document for example:
http://wwwcs.uni-paderborn.de/pc2/fileadmin/Vorlesung_APR_WS07/VL1.pdf

Regards,
Benjamin
Comment 13 Pino Toscano 2008-05-16 15:06:25 UTC
*** Bug 162156 has been marked as a duplicate of this bug. ***
Comment 14 Pino Toscano 2008-05-16 15:12:51 UTC
SVN commit 808367 by pino:

Backport: do not consider hidden pages when getting the text within the selected rectangle.
Will be in KDE 4.0.5.

CCBUG: 157927


 M  +3 -0      pageview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=808367
Comment 15 Pino Toscano 2008-05-16 15:15:51 UTC
SVN commit 808374 by pino:

Do not consider hidden pages when getting the text within the selected rectangle.

BUG: 157927


 M  +3 -0      pageview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=808374