On 28/08/14 04:22, Anton Aylward wrote:
On 08/27/2014 07:08 PM, Istvan Gabor wrote:
"Carlos E. R." írta:
On 2014-08-28 00:35, Istvan Gabor wrote:
So we don't have either adobe reader or kpdf in openSUSE 13.1 by the default KDE4 or gnome. Does openSUSES 13.1 have a pdf viewer that works as good as adobe reader or kpdf?
There are different selection modes in okular. Try a different mode.
Yes, after selecting the text by drawing a rectangular I have to choose from either select text or select image copy to clipboard. I do select text copy to clipboard. The copied text becomes a mess.
pasting text from some PDF files is actually very difficult.
Yes, but not in kdfp (last stable version 6 years ago). It works perfectly.
maybe I'm misinterpreting but ...
So I create a document using openlibre and export that as a PDF.
I open the PDF with okular and use the text tool (clt-F4) and swipe over some text.
oh, wait, its selecting text just like in a word processor and not, as Istvan says, drawing a rectangle. I'm using the text tool and not the 'selection tool'.
I open another text window. Lets be dumb, lets make that vim, and paste that selected text in. It goes in with the same line breaks, not 'one word per line'.
Now, I freely grant that this is a biased test. it is not some J. Q. Random piece of PDF off the net, not one produced by that dread tool, Microsoft Word. I've seen what kind of HTML that produces and can dread the PDF.
Even given this I've never had the kind of problems Istvan describes, though I do recall, vaguely, some one-word-per-line from some document, one I did not produce.
Now I've just gone back to the same PDF document, the one I personally produced with LibreOffice, and used the 'selection tool' to select a region that includes some text. But its a rectangle, possibly a bitmap, who knows.
Well actually I'm offered a menu. I can paste to clipboard as text or I can paste to clipboard as bitmap.
It looks like okular has smarts that I never suspected.
So when it comes down to actually looking at how it works, Sorry Istvan, I think you're blowing smoke on this one. Or possibly having finger troubles. Or I'm doing something different from you.
Anyway, I'm getting sick of people saying how great KDE3 was and how it can do things that KDE4 can't and hence the old is better than the new. If you really believe that then dig out that huge and hot PDP-11/55 and run UNIX V6 one it. BTDT and I'm glad I'm running Linux on a box that I can fir in my briefcase and still have room for my lunch. Oh, AND fit my Android tablet in! Hello Anton,
Of course you're right -- Okular can do a decent job of copying text to the clipboard from some PDF documents (depending on how the text is structured and what tool created it). This being said, I've been confronted to the same problem as the OP with PDFs that contain tables (for instance price quotes from one of our suppliers, which I suspect are PDFs created out of MS Excel sheets). The PDF do contain the text for these tables, but to copy-and-paste it to a text editor *while preserving the table format*, I also have to use KPDF, old as it is. From earlier comment on this list, the bug is not in Okular, but in the underlying PDF-handling library (though I don't remember which one that is) -- KPDF apparently uses a different one. But to give an example, here is part of some table copied from a PDF using kpdf: -----------------------<cut>-------------------------- 17957583 16 - TCR/TR #1 (FBTR) - Dynalogn Qty Reference Description 1 C8N26AV BTO/HP EliteDesk 800 G1 SFF 1 C8N61AV BTO/Single Unit (SFF) Packaging 1 NQ592AV BTO/HP E-Star 5.0 Cat C Label -----------------------<cut>-------------------------- Here is the exact same text copied using Okular: -----------------------<cut>-------------------------- Qty 17957583 Reference 1 1 1 C8N26AV C8N61AV NQ592AV 16 - TCR/TR #1 (FBTR) - Dynalogn Description BTO/HP EliteDesk 800 G1 SFF BTO/Single Unit (SFF) Packaging BTO/HP E-Star 5.0 Cat C Label -----------------------<cut>-------------------------- Both times using the rectangular selection tool, then "Copy to Clipboard". Guess which one I prefer ;-) Just my 2 ¢ Ph. A. -- *Philippe Andersson* Unix System Administrator IBA Particle Therapy | Tel: +32-10-475.983 Fax: +32-10-487.707 eMail: pan@iba-group.com http://www.iba-worldwide.com