Find a Ghostscript installation and detect it's version number

Namespace:  pdf7.PdfWriter
Assembly:  pdf7.PdfWriter (in pdf7.PdfWriter.dll)

Syntax

Visual Basic (Declaration)
Public Function GetGhostscriptExecutable ( _
	printerApplicationFolder As String, _
	<OutAttribute> ByRef executablePath As String, _
	<OutAttribute> ByRef majorVersion As Integer, _
	<OutAttribute> ByRef minorVersion As Integer _
) As Boolean
C#
public bool GetGhostscriptExecutable(
	string printerApplicationFolder,
	out string executablePath,
	out int majorVersion,
	out int minorVersion
)
Visual C++
public:
virtual bool GetGhostscriptExecutable(
	String^ printerApplicationFolder, 
	[OutAttribute] String^% executablePath, 
	[OutAttribute] int% majorVersion, 
	[OutAttribute] int% minorVersion
) sealed
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