From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61723 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: using pdftotext for `displaying' pdf files Date: Fri, 20 Jan 2006 19:55:52 +0100 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: <87y81a247a.fsf@mat.ucm.es> Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1137783547 9633 80.91.229.2 (20 Jan 2006 18:59:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2006 18:59:07 +0000 (UTC) Original-X-From: ding-owner+m10253@lists.math.uh.edu Fri Jan 20 19:59:03 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F01TG-0001WC-NF for ding-account@gmane.org; Fri, 20 Jan 2006 19:58:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1F01TC-0004ag-00; Fri, 20 Jan 2006 12:58:46 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1F01Qn-0004aY-00 for ding@lists.math.uh.edu; Fri, 20 Jan 2006 12:56:17 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1F01Qj-0001Jo-2B for ding@lists.math.uh.edu; Fri, 20 Jan 2006 12:56:17 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1F01Qh-0004I9-00 for ; Fri, 20 Jan 2006 19:56:11 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1F01Qd-0000z5-66 for ding@gnus.org; Fri, 20 Jan 2006 19:56:07 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.10.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 Jan 2006 19:56:07 +0100 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 Jan 2006 19:56:07 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org Original-Lines: 32 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: 1;h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB;kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm;%Od On Fri, Jan 20 2006, Uwe Brauer wrote: > I would like to use pdftotext instead of xpdf for displaying pdf > files. I played around with the entries in the .mailcap file. The > problem is that pdftotext transforms a pdf file into a text file but > does not display pdf files directly. ,----[ pdftotext(1) ] | SYNOPSIS | pdftotext [options] [PDF-file [text-file]] | | DESCRIPTION | [...] If text-file is not specified, pdftotext converts | file.pdf to file.txt. If text-file is `-', the text is sent | to stdout. `---- > So how can I configure XEmacs that he displays the converted pdf > file? ,----[ ~/.mailcap ] | application/pdf; pdftotext %s -; copiousoutput; nametemplate=%s.pdf `---- You need to restart (X)Emacs or eval (mailcap-parse-mailcaps nil t) after changing the mailcap file. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/