Visit the Ghostscript download area and download the most current binary for either 64-bit or 32-bit Windows (Subsection E.1.4 ). Run the installer. You can accept almost all the default options. As with ImageMagick (Section E.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.
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 E.2.2.
Congratulations, you have successfully installed Ghostscript.