extract text from pdf

Kevin Carney kcarney2 at earthlink.net
Mon Oct 11 22:52:47 UTC 2004


On Mon, 2004-10-11 at 23:27 +0200, Hubertus Hiden wrote:
> Actually i've been thinking of some sort of GUI programm that allows the 
> selection of text but
> 
Actually, xpdf will let you do a *kind of* copy and paste of a selection
of text.  When you are in xpdf, you can drag a box around the text you
want to copy, and in doing so the highlighted text is automatically put
into X's PRIMARY selection buffer.

While that text is still selected you can go into
gedit/openoffice/gvim/whatever and paste it by MIDDLE clicking.

A more in depth explanation of how this works can be found here
http://www.jwz.org/doc/x-cut-and-paste.html.

> #!/bin/sh
> pdftotext $@ $@.txt
> gedit $@.txt
> 
> saved as ~/.gnome2/nautilus-scripts/pdf2txt
> does the job even better !

Nice script...I think i'll steal it :)

Kevin






More information about the ubuntu-users mailing list