home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 11 / AACD11.ISO / AACD / Utilities / PS2PDF / ps2pdfnomui < prev    next >
Text File  |  1977-12-31  |  1KB  |  59 lines

  1. ; Postscript to PDF conversion script
  2. ; losely based on ps2pdf batch script supplied 
  3. ; with MSDOS versions of Ghostscript by Matt
  4. ; Sergeant.
  5. ;
  6. ; This script requires Ghostscript to work.
  7. ; Just copy the Ghostscript folder from 
  8. ; aacd#2 to your hard drive and ensure that
  9. ; the executeable appropriate to your CPU 
  10. ; is renamed to "GS". You must have 
  11. ; an assign to Ghostscript: set up.
  12. ;
  13. ; This script may be used for any purpose 
  14. ; and may be republished by anyone  
  15. ; or in any format including but not 
  16. ; limited to the Aminet, magazine CDs.,
  17. ; commercial Amiga file collections etc.
  18. ; on the single condition that it is  
  19. ; kept intact and unedited. 
  20. ; Andrew Korn 14th sept 1999. 
  21.  
  22.  
  23.  
  24.  
  25. if NOT EXISTS Ghostscript:
  26.    echo "This script requires an installation of Ghostscript and an assign
  27. of ghostscript: to the ghostscript directory to work. Please refer to Amiga
  28. Active Magazine issue 2 and the AACD#2 for everything you need to get it
  29. working."
  30.    break
  31. endif
  32.  
  33. echo "Amiga Active Magazine Postscript to PDF conversion script. Please tell me what file you would like to convert
  34.  
  35. stack 65535
  36.  
  37. RequestFile >ENV:psfile title="Postscript file to convert to PDF" 
  38.  
  39. echo "Now please tell me where you want me to save the pdf file."
  40.  
  41. requestfile >env:pdffile savemode title="PDF file to save (use .pdf)"
  42.  
  43.  
  44.  
  45. ghostscript:gs  -dNOPAUSE -dBATCH -sDEVICE#pdfwrite -sOutputFile#t:pdfout.pdf $psfile
  46.  
  47. copy t:pdfout.pdf $pdffile
  48.  
  49. delete t:pdfout.pdf
  50.  
  51.  
  52.  
  53. echo "all done!"
  54.  
  55.  
  56.  
  57.  
  58.  
  59.