Reference articles on history, science, culture and more
Encyclopedia

Ghostscript

Interpreter for the PostScript language

Image credit is listed at the end of this article.

Ghostscript is a suite of software based on an interpreter for Adobe Systems' PostScript and Portable Document Format (PDF) page description languages. Its main purposes are the rasterization of documents in these languages, the display or printing of document pages, and conversion between PostScript and PDF files.

01Features

Ghostscript can be used as a raster image processor (RIP) for raster computer printers, for instance, as an input filter of line printer daemon, or as the RIP engine behind PostScript and PDF viewers. It can also be used as a file format converter, such as PostScript to PDF converter. The ps2pdf conversion program comes with the Ghostscript distribution.

Ghostscript can also serve as the back-end for PDF to raster image (png, tiff, jpeg, etc.) converter; this is often combined with a PostScript printer driver in "virtual printer" PDF creators. As it takes the form of a language interpreter, Ghostscript can also be used as a general purpose programming environment.

Ghostscript has been ported to many operating systems, including Unix-like systems, classic Mac OS, OpenVMS, Microsoft Windows, Plan 9, MS-DOS, FreeDOS, OS/2, ArcaOS, Atari TOS, RISC OS and AmigaOS.

02History

Ghostscript was originally written by L. Peter Deutsch for the GNU Project, and released under the GNU General Public License in 1988. At the time of the initial release there was a similar commercial software product named GoScript from LaserGo. Later, Deutsch formed Aladdin Enterprises to dual-license Ghostscript also under a proprietary license with an own development fork: Aladdin Ghostscript under the Aladdin Free Public License (which, despite the name, is not a free software license, as it forbids commercial distribution) and GNU Ghostscript distributed with the GNU General Public License. With version 8.54 in 2006, both development branches were merged again, and dual-licensed releases were still provided.

Ghostscript is currently owned by Artifex Software and maintained by Artifex Software employees and the worldwide user community. According to Artifex, as of version 9.03, the commercial version of Ghostscript can no longer be freely distributed for commercial purposes without purchasing a license, though the (A)GPL variant allows commercial distribution provided all code using it is released under the (A)GPL.

In February 2013, with version 9.07, Ghostscript changed its license from GPLv3 to GNU AGPL. which raised license compatibility questions, for example by Debian.

Starting with release 9.55.0 Ghostscript has two built-in PDF interpreters. Until spring 2022, up to Ghostscript version 9.56.1, the default PDF interpreters implementation itself was coded in PostScript. The new default PDF interpreter has been rewritten in C entirely, and is faster and more secure than its predecessor, while its interface and graphics library have not changed. Scripting the new C written PDF interpreter from PostScript is still possible.

03Free fonts

There are several sets of free fonts supplied for Ghostscript, intended to be metrically compatible with common fonts attached with the PostScript standard. These include:

The Ghostscript fonts were developed in the PostScript Type 1 format but have been converted into the TrueType format. As a result, a user can install and use the Ghostscript fonts via most modern software. Furthermore, the Ghostscript fonts are used as parts of various open source applications, e.g., the Linux version of GIMP depends on Graphviz which in turn depends on the Ghostscript fonts. Finally, multiple open source font projects used glyphs from the Ghostscript fonts, e.g., the Latin characters of GNU FreeFont are based on Nimbus Mono L, Nimbus Roman No9 L, and Nimbus Sans L. The TeX Gyre fonts are also based on 8 out of the 10 original Ghostscript typeface families. The Garamond font has additionally been improved upon.

Watch videos about GhostscriptExplainers and documentaries on YouTube (opens in a new tab)

Sources and credits

This article is adapted from the Wikipedia article Ghostscript, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.

Images, from Wikimedia Commons:

Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.