On Fri, Apr 16, 2021 at 01:02:39PM -0600, Paul Gilmartin via Mutt-users wrote: > On 2021-04-16, at 12:28:17, Chris Green wrote: > > > > As per subject, is there any easy way to print attachments such as PDF > > files? Hitting 'p' against an attachment just says "I don't know how > > to print that". Is there any way to tell mutt how to print it which > > will also allow printing of plain text as normal. > > > Can mailcap entries handle that, or is mailcap solely for viewing? > Is there a PDF viewer with a Print command?
From my ~/.mailcap:
application/pdf; \
/usr/bin/atril %s; \
description=Portable Document Format document; \
test=test $DISPLAY; \
nametemplate=%s.pdf; \
print=/usr/bin/lpr %s;
--
Mark H. Wood
Lead Technology Analyst
University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu
signature.asc
Description: PGP signature
