topdf (250B)
1 #!/usr/bin/env bash 2 for f in "$@" 3 do 4 filePathNoExtension="${f%.*}" 5 textutil -convert html -output "$filePathNoExtension.html" "$f" 6 cupsfilter "$filePathNoExtension.html" > "$filePathNoExtension.pdf" 7 rm "$filePathNoExtension.html" > /dev/null 8 done