Re: mailcap
Christian Ebert wrote:
> Bob Proulx wrote:
> > Oh very good! I had not known about pdftotext before. But looking at
> > it I see that it requires an input file as a file and won't read
> > stdin.
>
> errmh, the following works for me:
>
> $ grep pdftotext ~/.mailcap
> application/pdf; pdftotext -layout %s -; copiousoutput
Very good. I missed this in the man page:
If text-file is not specified, pdftotext converts file.pdf to
file.txt. If text-file is ´-’, the text is sent to stdout.
That certainly makes things much simpler with no temporary files to
worry about. Thanks for pointing that out.
Bob