Gnus development mailing list
 help / color / mirror / Atom feed
* using pdftotext for `displaying' pdf files
@ 2006-01-20 17:34 Uwe Brauer
  2006-01-20 18:55 ` Reiner Steib
  0 siblings, 1 reply; 3+ messages in thread
From: Uwe Brauer @ 2006-01-20 17:34 UTC (permalink / raw)


Hello

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. So how can I configure XEmacs that
he displays the converted pdf file?

Thanks


Uwe Brauer 




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: using pdftotext for `displaying' pdf files
  2006-01-20 17:34 using pdftotext for `displaying' pdf files Uwe Brauer
@ 2006-01-20 18:55 ` Reiner Steib
  2006-01-20 20:26   ` Uwe Brauer
  0 siblings, 1 reply; 3+ messages in thread
From: Reiner Steib @ 2006-01-20 18:55 UTC (permalink / raw)


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/




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: using pdftotext for `displaying' pdf files
  2006-01-20 18:55 ` Reiner Steib
@ 2006-01-20 20:26   ` Uwe Brauer
  0 siblings, 0 replies; 3+ messages in thread
From: Uwe Brauer @ 2006-01-20 20:26 UTC (permalink / raw)


>>>>> "Reiner" == Reiner Steib <reinersteib+gmane@imap.cc> writes:


   >> So how can I configure XEmacs that he displays the converted pdf
   >> file?

  Reiner> ,----[ ~/.mailcap ]
  Reiner> | application/pdf; pdftotext %s -; copiousoutput; nametemplate=%s.pdf
  Reiner> `----



Ok this 
; copiousoutput; nametemplate=%s.pdf
does the trick, thanks very much.

Uwe 




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-01-20 20:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-20 17:34 using pdftotext for `displaying' pdf files Uwe Brauer
2006-01-20 18:55 ` Reiner Steib
2006-01-20 20:26   ` Uwe Brauer

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).