Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Re: using pdftotext for `displaying' pdf files
Date: Fri, 20 Jan 2006 19:55:52 +0100	[thread overview]
Message-ID: <v9ek32wwxz.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <87y81a247a.fsf@mat.ucm.es>

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/




  reply	other threads:[~2006-01-20 18:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-20 17:34 Uwe Brauer
2006-01-20 18:55 ` Reiner Steib [this message]
2006-01-20 20:26   ` Uwe Brauer

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=v9ek32wwxz.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).