Ghostscript

Ghostscript API programming examples

Ghostscript is available as a DLL on Windows and a shared library on Linux. The documentation for the DLL/shared library API is in API.htm.

C / C++

The API documentation includes examples written in C. Other examples are the ghostscript source files src/dwmainc.c and src/dxmainc.c.

Delphi

There is an example available at ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/contrib/gsapi_delphi.zip

Visual Basic

There are examples for Visual Basic 6 and Visual Basic.NET showing how to convert PostScript to PDF in ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/contrib/gsapi_vb.zip
The examples show how to load the Ghostscript DLL, check the revision number, pass arguments to Ghostscript and handle stdout.
Last updated 2002-03-19