[neomutt-users] Print html to pdf
Peter P.
peterparker at fastmail.com
Fri Mar 20 16:07:24 CET 2020
* 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?
More information about the neomutt-users
mailing list