[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Free PDF viewer that can search for text across line-breaks?



On Mon, Apr 11, 2011 at 03:00:03PM -0700, Dr. Ed Morbius wrote:
> on 14:46 Sat 09 Apr, Joel Roth (joelz@pobox.com) wrote:
> > On Sat, Apr 09, 2011 at 05:22:04PM -0700, Todd A. Jacobs wrote:
> > > On Sat, Apr 9, 2011 at 4:20 AM, Arthur Marsh
> > > <arthur.marsh@internode.on.net>wrote:
> > > 
> > > > Is there any Free PDF viewer in Debian that works outside of GNOME/KDE that
> > > > can both search for text across line breaks and allows copying of text from
> > > > the PDF document to the clip-board?
> > > >
> > > 
> > > Install pdfgrep and xclip. You can then do something like:
> > > 
> > >   pdfgrep 'foo.*bar' baz.pdf | xclip
> > > 
> > > Works for me.
> > 
> > xclip! how is it I didn't know about you for so long?
> 
> Two shell scripts which have found their way to /usr/local/bin:
> 
> ------------------------------------------------------------------------
> xp      # xclip paste
> ------------------------------------------------------------------------
> #!/bin/sh
> # X clipboard paste
> export PATH=/usr/bin:/bin
> xclip -o
> ------------------------------------------------------------------------
> 
> 
> ------------------------------------------------------------------------
> xc      # xclip copy
> ------------------------------------------------------------------------
> #!/bin/sh
> # Xclip copy
> export PATH=/usr/bin:/bin
> xclip
> ------------------------------------------------------------------------

> 
> Solves the vi/vim "how do I read in text" problem as well:
> 
>    :r !xp

That's quite a bit better than what I was doing before:

     :r!cat <mouse-middle-click> <CR> ^D
 
> -- 
> Dr. Ed Morbius, Chief Scientist /            |
>   Robot Wrangler / Staff Psychologist        | When you seek unlimited power
> Krell Power Systems Unlimited                |                  Go to Krell!
> 
> 
-- 
Joel Roth


Reply to: