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.