星火微课系统客户端
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* $Id: ps2pdf.cmd 8244 2007-09-18 19:01:34Z giles $ */
  2. /*
  3. * This file is maintained by a user: if you have any questions about it,
  4. * please contact Mark Hale (mark.hale@physics.org).
  5. */
  6. /* Convert PostScript to PDF 1.4 (Acrobat 5-and-later compatible). */
  7. /* The PDF compatibility level may change in the future: */
  8. /* use ps2pdf12 or ps2pdf13 if you want a specific level. */
  9. parse arg params
  10. gs='@gsos2'
  11. inext='.ps'
  12. outext='.pdf'
  13. if params='' then call usage
  14. options=''
  15. /* extract options from command line */
  16. i=1
  17. param=word(params,i)
  18. do while substr(param,1,1)='-'
  19. options=options param
  20. i=i+1
  21. param=word(params,i)
  22. end
  23. infile=param
  24. if infile='' then call usage
  25. outfile=word(params,i+1)
  26. if outfile='' then do
  27. outfile=infile''outext
  28. infile=infile''inext
  29. end
  30. gs options '-q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile='outfile options '-c save pop -f' infile
  31. exit
  32. usage:
  33. say 'Usage: ps2pdf [options...] input[.ps output.pdf]'
  34. exit