Bug 300400 - searching for text in rotated content doesn't work
Summary: searching for text in rotated content doesn't work
Status: RESOLVED DUPLICATE of bug 407133
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.19.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-21 18:21 UTC by Mike Frysinger
Modified: 2020-09-05 10:53 UTC (History)
4 users (show)

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


Attachments
pdf from libreoffice with horizontal and vertical text (14.01 KB, application/pdf)
2012-12-14 08:46 UTC, Dirk Sarpe
Details
source odt for pdf with horizontal and vertical text (9.26 KB, application/vnd.oasis.opendocument.text)
2012-12-14 08:47 UTC, Dirk Sarpe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Frysinger 2012-05-21 18:21:00 UTC
i have a pdf that has text rotated 90 degrees, but trying to search for matches within that text region fails.  using adobe's acroread works.

Reproducible: Always

Steps to Reproduce:
1. download http://distfiles.gentoo.org/distfiles/pms-4_p20110118.pdf
2. load it in okular
3. search for "ECLASSDIR"
Actual Results:  
okular reports no matches

Expected Results:  
okular would find the listing of ECLASSDIR on page 47 (Section 12.1 under The Ebuild Environment -> Defined Variables)

using KDE 4.8.2 with Okular 0.14.2

the original source can be found here:
git://git.overlays.gentoo.org/proj/pms.git
Comment 1 Dirk Sarpe 2012-12-14 08:46:35 UTC
Created attachment 75823 [details]
pdf from libreoffice with horizontal and vertical text
Comment 2 Dirk Sarpe 2012-12-14 08:47:40 UTC
Created attachment 75824 [details]
source odt for pdf with horizontal and vertical text
Comment 3 Dirk Sarpe 2012-12-14 08:48:02 UTC
Noticed the same with Okular 0.15.4 KDE 4.8.2. Tried with pdfs created with pdflatex and libreoffice writer (the latter attached). Funny enough if one selects the vertical text it is recognized as text, but the string is distorted. In the case of the libreoffice pdf instead of 
"Hidden" it is 
"n
eddiH" which is also found when searching for it.

On a side note opened the odt file (attached as well) from which I created the pdf with okular and the vertical text was not displayed.
Comment 4 null 2017-11-24 22:24:35 UTC
FWIW, this is still a problem as of KDE Applications 17.11.80 and Poppler 0.61.

See also Bug 338563, which concerns the selection/copying problem. However, note that simply fixing this bug won't be enough, we would also need to strip a varying amount of whitespace/linebreaks. This can be seen by creating a PDF in Inkscape that contains text fragments, each rotated in different multiples of 10°, and then pasting the copied text.
Comment 5 Laura David Hurka 2020-09-05 10:53:22 UTC

*** This bug has been marked as a duplicate of bug 407133 ***