Bug 105630 - Text in some documents exported from OOo 2.0 can't be selected
Summary: Text in some documents exported from OOo 2.0 can't be selected
Status: RESOLVED FIXED
Alias: None
Product: kpdf
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Astals Cid
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-13 22:17 UTC by Jerzy Kozera
Modified: 2005-05-17 22:26 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
test.pdf, from which the text can't be copied (12.81 KB, application/pdf)
2005-05-13 22:19 UTC, Jerzy Kozera
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jerzy Kozera 2005-05-13 22:17:19 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    Gentoo Packages
Compiler:          g++ 3.4.3 pie, ssp, hardened gentoo profile
OS:                Linux

I can't select text in simple documents exported from OpenOffice 2 Beta. An example is available at http://sigil.edu.ms/test.pdf. KPDF's selection context menu allows only copying text as bitmap.

Text can be selected and copied in Adobe Reader 7 and in Evince, so I think that it's a bug.

I can also reproduce this with snapshot from ftp://ftp.kde.org/pub/kde/unstable/snapshots/ (kdegraphics-050504.tar.bz2)
Comment 1 Jerzy Kozera 2005-05-13 22:19:30 UTC
Created attachment 11030 [details]
test.pdf, from which the text can't be copied
Comment 2 Albert Astals Cid 2005-05-17 22:26:49 UTC
SVN commit 415187 by aacid:

Call m_text->endPage() on KPDFOutputDev::endPage() when generating text
Fixes bug 105630
BUGS: 105630


 M  +3 -0      trunk/KDE/kdegraphics/kpdf/core/generator_pdf/gp_outputdev.cpp  


--- trunk/KDE/kdegraphics/kpdf/core/generator_pdf/gp_outputdev.cpp #415186:415187
@@ -112,7 +112,10 @@
 {
     SplashOutputDev::endPage();
     if ( m_generateText )
+    {
+        m_text->endPage();
         m_text->coalesce( gTrue );
+    }
 
     int bh = getBitmap()->getHeight(),
         bw = getBitmap()->getWidth();