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.


There is an example available at

Visual Basic

There are examples for Visual Basic 6 and Visual Basic.NET showing how to convert PostScript to PDF in
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