Skip to main content

Section H.6 Installing Ghostscript

Visit the Ghostscript download area and download the most current binary for either 64-bit or 32-bit Windows (Subsection H.1.4 ). Run the installer. You can accept almost all the default options. As with ImageMagick (Section H.5), it is probably best to choose an installation location whose path name is free of spaces, such as c:\gs. We refer to this installation location as <gs> below.

Subsection H.6.1 Change PATH environment variable

The pdfcrop utility needs to be told which Ghostscript command to use. We need to add the file gswin64c.exe to the Windows PATH. This is similar to what is done above, in Subsection H.2.2.

  1. Open the Start menu and start typing “Edit the system environment variables”. Select this option when it becomes visible.

  2. Click the Environment Variables button near the bottom of the dialog.

  3. In the bottom part of the dialog labeled “System environment variables”, look for a variable named PATH. You may need to scroll.

  4. If you do find the PATH variable, select it and click the Edit... button.

  5. You should see a dialog with two text fields. Your variable name should be PATH.

  6. Place the cursor in the existing value and press the End key, so that the cursor moves to the back of the line. The PATH string is a ;-delimited list of full path names, so append the string <gs>; (note the semicolon) to the existing value. If you named <gs> as we suggested above, then the last part of your PATH variable is now C:\gs;.

  7. Click OK to save changes.

List H.6.1 Path Environment Variable for ghostscript

Congratulations, you have successfully installed Ghostscript.