From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Newsgroups: gmane.emacs.help Subject: Re: Viewing PDFs as text? Date: Wed, 19 Mar 2008 23:19:28 -0700 (PDT) Organization: http://groups.google.com Message-ID: 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=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1206019148 32725 80.91.229.12 (20 Mar 2008 13:19:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Mar 2008 13:19:08 +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 14:19:29 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 1JcKfw-0001Mz-Ec for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Mar 2008 14:19:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JcKfL-0006I7-W5 for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Mar 2008 09:18:44 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!e10g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: 202.88.84.208 Original-X-Trace: posting.google.com 1205993968 31115 127.0.0.1 (20 Mar 2008 06:19:28 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 20 Mar 2008 06:19:28 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e10g2000prf.googlegroups.com; posting-host=202.88.84.208; posting-account=wcF3XAoAAADpxbRZm2Z27inMlnZjMIWc User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9b4) Gecko/2008031318 Firefox/3.0b4,gzip(gfe),gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:157191 X-Mailman-Approved-At: Thu, 20 Mar 2008 09:18:28 -0400 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:52567 Archived-At: On Mar 11, 6:07=A0pm, Tim X wrote: > Alan writes: > > Less (via lesspipe, I think) is able to read pdf files as text, using > > pdftotext. =A0It 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