您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910
  1. #!/usr/bin/env bash
  2. # AUTHOR: shaggy
  3. # FILE: txt2pdf.sh
  4. # ROLE: TODO (some explanation)
  5. # CREATED: 2015-04-05 03:07:15
  6. # MODIFIED: 2015-04-05 03:07:16
  7. _tempfile=$(mktemp -u)
  8. abiword --to=ps --to-name="${_tempfile}" "${1}"
  9. ps2pdf "${_tempfile}" "${1}.pdf"
  10. rm "${_tempfile}"