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 PDF/PS files Date: Thu, 17 May 2007 19:07:04 +1000 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <87fy5v4y4n.fsf@lion.rapttech.com.au> References: <1179286165.059166.142850@k79g2000hse.googlegroups.com> <1179325837.096570.301430@e65g2000hsc.googlegroups.com> <1179336517.771594.157170@o5g2000hsb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1179394440 7593 80.91.229.12 (17 May 2007 09:34:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 17 May 2007 09:34:00 +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 May 17 11:33:59 2007 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 1HocMw-0003Iq-SH for geh-help-gnu-emacs@m.gmane.org; Thu, 17 May 2007 11:33:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HocV1-0007Bx-KZ for geh-help-gnu-emacs@m.gmane.org; Thu, 17 May 2007 05:42:19 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!newsfeed.berkeley.edu!ucberkeley!sn-xt-sjc-03!sn-xt-sjc-09!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.99 (gnu/linux) Cancel-Lock: sha1:9iAWku7vZ5hpZBDiCTIvU7HN004= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 39 Original-Xref: shelby.stanford.edu gnu.emacs.help:148479 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:44068 Archived-At: mowgli writes: > On May 16, 7:30 pm, weber wrote: >> On 16 maio, 00:29, mowgli wrote: >> >> > Is it possible to view PDF or PS files in the emacs on console? If >> > yes, how? >> >> > Regards, >> > mowgli >> > >> You mean like extracting text from those files ? > > No, not extracting but actually being able to read ps files directly > in to emacs. I think emacs can convert to ps files, then can't it read > them? On the console version, not in X I mean. > No it can't do that. Generating a PS file is very different from displaying one. To do this, you would need a point/pixel level drawing routine and the ability to print a pixel at any location etc, plus the ability to interpret the font specifications in the PS etc. The best you can do is 1. convert to text. I have a utility that pretty much automates this process. If you try to view a PS, PDF or DOC file, it uses external conversion utilities to convert the document to a plain text format and display that in a buffer. 2. Use one of the 'runit' type emacs extensions that are out there. These extensions will pass the file to an external program like ghostview or xpdf to display the document. Tim -- tcross (at) rapttech dot com dot au