#! /bin/zsh # # this file: # http://user.it.uu.se/~embe8573/conf/.zsh/pdf-convert # https://dataswamp.org/~incal/conf/.zsh/pdf-convert txt2pdf () { local -a files files=($@) local name for f in $files; do name=${f:r} ps2pdf =(paps =(iso2utf $f)) ${name}.pdf done } groff2pdf () { local manpage=$1 man -t $manpage | ps2pdf -dNOPLATFONTS - > ${manpage}.pdf }