[neomutt-users] Print html to pdf

philipp at thumfart.info philipp at thumfart.info
Fri Mar 20 17:24:37 CET 2020


Thanks, this looks promising for plain text mails, but does not solve my problem for with html e-mails.

--
Mit freundlichen Grüßen
With kind regards

Mag. Philipp S. Thumfart

On 20.03.2020 16:07, Peter P. wrote:
> * Jakub Jindra <jakub.jindra at jakubjindra.eu> [2020-03-20 15:55]:
> > Hi Philipp,
> >
> > I have following script for printing to PDF:
> >
> > #!/usr/bin/env sh
> > OPEN_PDF="open -a Preview"
> >
> > tmpfile=$(mktemp)
> > perl -pe 's/\e\[[\d;]*m//g;' | \
> > 	iconv -f utf-8 -t iso-8859-2 -c | \
> > 	a2ps -B -X iso2 -o - | \
> > 	ps2pdf - $tmpfile
> >
> > $OPEN_PDF $tmpfile
> > sleep 1
> > rm $tmpfile
> > #### END
> >
> > set print_command = "/path/to/the/script/above.sh"
> >
> > Change OPEN_PDF command to suit your needs.
> > You need perl, iconv, a2ps and ghostscript.
> >
> > To create PDF with with all headers run before printing.
> > :unset weed
> >
> > My PDFs are quite ugly. If anyone has prettier way I would also like to see it.
> muttprint?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <https://mailman.neomutt.org/pipermail/neomutt-users-neomutt.org/attachments/20200320/d5a4ebbf/attachment.sig>


More information about the neomutt-users mailing list