GhostScript location

The location of GhostScript is determined in the following way.

  • If the environment variable TLGSPATH is defined, its value specifies the full path to a folder containing the GhostScript executable. You must declare this variable if you want TopLeaf to select a specific version of GhostScript and more than one version of GhostScript is installed on your system.

    For example: TLGSPATH="C:\Program Files\gs\gs8.54\bin"

Otherwise, TopLeaf will attempt to locate GhostScript by searching the registry:

  • If GPL GhostScript is installed, TopLeaf will use the registry key HKEY_LOCAL_MACHINE\SOFTWARE\GPL Ghostscript to resolve the full path to the GhostScript executable.

  • Otherwise, if AFPL GhostScript is installed, TopLeaf will use the registry key HKEY_LOCAL_MACHINE\SOFTWARE\AFPL Ghostscript to resolve the full path to the GhostScript executable.

  • Otherwise, if GNU GhostScript is installed, TopLeaf will use the registry key HKEY_LOCAL_MACHINE\SOFTWARE\GNU Ghostscript to resolve the full path to the GhostScript executable.