Find a Ghostscript installation and detect it's version number
Namespace:
pdf7.PdfWriter
Assembly:
pdf7.PdfWriter (in pdf7.PdfWriter.dll)
Syntax
| C# |
|---|
public bool GetGhostscriptExecutable(
string printerApplicationFolder,
out string executablePath,
out int majorVersion,
out int minorVersion
) |
| JavaScript |
|---|
function getGhostscriptExecutable(printerApplicationFolder, executablePath, majorVersion, minorVersion); |
Parameters
- printerApplicationFolder
- Type: System..::.String
Path of folder where the printer binaries are located. This is the folder where gui.exe is found.
- executablePath
- Type:
System..::.String
%
The full path of the Ghostscript command line executable is returned in this variable.
- majorVersion
- Type:
System..::.Int32
%
The major version of the Ghostscript executable is returned in this variable.
- minorVersion
- Type:
System..::.Int32
%
The minor version of the Ghostscript executable is returned in this variable.
Return Value
Return true if the Ghostscript executable is found. Otherwise, false is returned.
See Also