all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: Viewing PDFs as text?
Date: Thu, 20 Mar 2008 19:50:20 +1100	[thread overview]
Message-ID: <8763vh93ub.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: d3899361-9c22-4165-ae55-baa2a232b0fe@e10g2000prf.googlegroups.com

Alan <lngndvs@gmail.com> writes:

> On Mar 11, 6:07 pm, Tim X <t...@nospam.dev.null> wrote:
>> Alan <lngn...@gmail.com> writes:
>> > Less (via lesspipe, I think) is able to read pdf files as text, using
>> > pdftotext.  It would be much easier for me to browse pdfs using
>> > emacs.
>>
>>
>> doc-view will do what you want. However, if you just want a text version
>> of the file, you may find the following useful. this is my txutils.el
>> package. It converts various file types (doc, pdf, ps etc) to text or
>> sometimes html and then displays the output in an emacs buffer. I use
>> advice to attach this to view-file (v in dired). As an added benefit, if
>> you do a view file on an html file, it will render in w3m.
>>
>> Note that this works perfectly for me. Your milage may differ and you
>> may find bugs. I'm certanly happy to recieve bug reports, but cannot
>> guarantee a timely update/fix.
>
> I am using a snapshot of CVS emacs (23.0.60).  I had to edit
> txutils.el to remove the "static-when" clause, but I'm not sure why.
> The file did byte-compile after I did so.  However, view-file ("v")
> does not seem to be re-defined in any way.
>
> I think this package can do what I want.  I DO NOT want to convert to
> png or other formats, or even to a text file.  I only want to view the
> file, which would seem to me, after all, to be the intention of the
> "view-file" command.
>
> Thank you very much.
>
> Alan

Hi Allen,

The bit that deals with emacs 21 can probably be removed now - it was
requird when there was more emacs 21 aound, but now that emacs 22 has
been released, I proably should remove it.

Apart from that, it works perfectly for me. I'll have to check the
view-file advice - maybe I have it in a different file. After a bit of
time, I tend to forget and get confused about some of this stuff.

Tim

-- 
tcross (at) rapttech dot com dot au


      reply	other threads:[~2008-03-20  8:50 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-10 20:52 Viewing PDFs as text? Alan
2008-03-10 22:59 ` Peter Dyballa
     [not found] ` <mailman.8684.1205189951.18990.help-gnu-emacs@gnu.org>
2008-03-11  3:42   ` Roland Winkler
2008-03-11  7:45     ` Tassilo Horn
     [not found]     ` <mailman.8699.1205221811.18990.help-gnu-emacs@gnu.org>
2008-03-11 13:11       ` Roland Winkler
2008-03-11 17:57         ` Bastien
2008-03-11 20:51           ` Stefan Monnier
2008-03-12  8:32           ` Tassilo Horn
2008-03-12  9:54             ` Phil Jackson
2008-03-12 12:12               ` Tassilo Horn
2008-03-12 12:11             ` Tassilo Horn
2008-03-12 13:45         ` Tassilo Horn
2008-03-13  3:37           ` Bastien
2008-03-13  9:29             ` Tassilo Horn
2008-03-13 10:09               ` Bastien
2008-03-13 10:30                 ` Tassilo Horn
2008-03-13 18:32                   ` Tassilo Horn
2008-03-13 18:45                     ` Bastien Guerry
2008-03-13 11:49               ` Emacs 23 and msb.el Guy Durrieu
2008-11-06  6:36                 ` Emacs 23: strange character display Guy Durrieu
2008-11-06  7:48                   ` Paul R
2008-11-06 13:12                     ` Guy Durrieu
     [not found]         ` <mailman.8756.1205329519.18990.help-gnu-emacs@gnu.org>
2008-03-12 15:38           ` Viewing PDFs as text? Roland Winkler
2008-03-18 22:47             ` Roland Winkler
2008-03-19 10:09               ` Tassilo Horn
2008-03-19 14:48                 ` Roland Winkler
2008-03-19 21:08                   ` Tassilo Horn
     [not found]                   ` <mailman.9221.1205960921.18990.help-gnu-emacs@gnu.org>
2008-03-19 23:54                     ` Roland Winkler
2008-03-20 20:25                       ` Tassilo Horn
2009-01-26  0:05                 ` Roland Winkler
     [not found]                   ` <87eiyqpjg1.fsf@thinkpad.tsdh.de>
2009-01-26 19:14                     ` Samuel Wales
2009-01-26 19:48                       ` Tassilo Horn
2009-01-26 19:52                         ` Samuel Wales
2009-01-26 20:37                           ` Tassilo Horn
2009-01-26 20:47                             ` Samuel Wales
2009-01-27  9:11                               ` Tassilo Horn
2009-01-26 22:28                             ` Roland Winkler
2009-01-27  9:33                               ` Tassilo Horn
2009-01-26 22:28                         ` Drew Adams
2009-01-27  9:10                           ` Tassilo Horn
2008-03-11  7:43 ` Tassilo Horn
2008-03-11  8:07 ` Tim X
2008-03-20  6:19   ` Alan
2008-03-20  8:50     ` Tim X [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8763vh93ub.fsf@lion.rapttech.com.au \
    --to=timx@nospam.dev.null \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.