From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Viewing PDFs as text? Date: Thu, 20 Mar 2008 19:50:20 +1100 Organization: Rapt Technologies Message-ID: <8763vh93ub.fsf@lion.rapttech.com.au> References: <7599507d-11a4-4e93-974f-5d7aa924b152@e6g2000prf.googlegroups.com> <87skyxela5.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1206006094 20181 80.91.229.12 (20 Mar 2008 09:41:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Mar 2008 09:41:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 20 10:42:02 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JcHHZ-0005EY-3t for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Mar 2008 10:41:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JcHGy-000813-PE for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Mar 2008 05:41:20 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed-hp3.netcologne.de!news.netcologne.de!newsfeed-hp2.netcologne.de!138.199.65.86.MISMATCH!sn-xt-ams-06!sn-xt-ams-08!sn-post-ams-01!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:12ysXpuYYoiFmr0mpKNcOEzB3K0= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 48 Original-Xref: shelby.stanford.edu gnu.emacs.help:157193 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:52563 Archived-At: Alan writes: > On Mar 11, 6:07 pm, Tim X wrote: >> Alan 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