

(EPS), DOS EPS (EPSF), and Adobe Portable Document Format (PDF). Ghostscript is capable of interpreting PostScript, encapsulated PostScript You can use the 'ps2' set with eps files. These just call Ghostscript with the appropriate

There are other utility scripts besides ps2pdf, including pdf2ps, ps2epsi, pdf2dsc, ps2ascii, There are also a number of utility scripts for common to convert a PostScript document to PDF: ps2pdf file.ps dTextAlphaBits=4 -sOutputFile='paper-%00d.pgm' paper.ps To rasterize a whole document: gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pgmraw -r150 \ To render a figure in grayscale: gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pnggray -sOutputFile=figure.png figure.pdf To render the same image at 300 dpi: gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=png16m -r300 \ To convert a figure to an image file: gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=png16m -dGraphicsAlphaBits=4 \ You'll be prompted to press return between pages. To view a file: gs -dSAFER -dBATCH document.pdf The details of how these work are described below. Ghostscript on unix-like systems type: gs. The command line to invoke Ghostscript isĮssentially the same on all systems, although the name of the executable Please refer to the documentation for those applications for using Ghostscript in other contexts. Ghostscript is also used as a general engine inside other applications (for viewing files for example). This document describes how to use the command line Ghostscript client. Appendix: Running Ghostscript with third-partyįor other information, see the Ghostscript.Appendix: Paper sizes known to Ghostscript.Using Ghostscript with overprinting and spot colors.Changing the installed default paper size.
