Ghostscript is an interpreter for the PostScript language. A PostScript interpreter usually takes as input a set of graphics commands. The output is usually a page bitmap which is then sent to an output device such as a printer or display.
It also includes a graphics library and a PDF interpreter written in PostScript. It can act as a general vector graphics conversion engine, converting PostScript or PDF documents to other vector and raster formats.