# Ghostscript

> An interpreter for the PostScript language and PDF files

Source: https://talira.ai/catalog/ghostscript-j6fzqd7w
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Library
- Categories: [documents / pdf / rendering](https://talira.ai/categories/documents/pdf/rendering), [documents / pdf / conversion](https://talira.ai/categories/documents/pdf/conversion)
- Platforms: linux, macos, windows[^7]
- Licence: AGPL-3.0-or-later[^3]
- Pricing: Free and open source[^3][^4]
- Pricing notes: Free under AGPL-3.0-or-later. Artifex sells commercial licences (OEM distribution with a per-copy cost and quarterly minimum, or subscription) priced by use case, with no published prices.
- Free tier: yes[^3][^4]
- Self-hostable: yes[^6][^7]
- Backed by: [Artifex Software](https://talira.ai/orgs/artifex-software.md)

Ghostscript is Artifex's interpreter for PostScript and PDF: it renders pages to raster images such as PNG and JPEG, converts between PostScript and PDF (`ps2pdf`, the `pdfwrite` and `ps2write` devices), and can write DOCX or OCR scans into searchable PDF; its new PDF interpreter, written in C, is now the default. It runs as the `gs` command or as a C library (`gsapi`) with bindings for C#, Java and Python, on Unix and Linux, Windows, [macOS](https://talira.ai/catalog/macos-8swyggxb.md) and OpenVMS, and the GhostPDL family adds GhostPCL and GhostXPS. It's dual-licensed: AGPL-3.0-or-later for free use, which requires releasing the source of anything built with it, including server-based applications and services, or a commercial licence from Artifex for closed-source products, OEM distribution and SaaS. Like [MuPDF](https://talira.ai/catalog/mupdf-a0hpyn67.md), licensing is handled only by Artifex.

## Links

- Website: https://www.ghostscript.com/
- GitHub: https://github.com/ArtifexSoftware/ghostpdl
- Docs: https://ghostscript.readthedocs.io/en/latest/
- Pricing: https://artifex.com/licensing

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/ghostscript>[^1]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/ghostscript>[^2]

## Problems it solves

- convert PostScript or EPS files to PDF on a Linux server
- render every page of a PDF to PNG at 300 dpi from a script
- can I ship a PDF rasteriser inside the Docker image we sell to customers without open-sourcing our app
- make a PDF from a print job a legacy system only outputs as PostScript
- turn PCL printer files from an old mainframe system into PDFs
- a commercial licence for a PDF interpreter we embed in a closed-source product
- call a PostScript and PDF interpreter from C#, Java or Python as a library

## Features

- PostScript and PDF interpreter (new C PDF interpreter by default)
- renders pages to PNG, JPEG and other raster formats at a chosen resolution
- pdfwrite and ps2write vector output; ps2pdf script
- DOCX output with the docxwrite device and OCR to searchable PDF
- GhostPCL (PCL5, PCL XL) and GhostXPS interpreters in the GhostPDL family
- C API (gsapi) with C#, Java and Python bindings
- runs on Unix, Linux, Windows, macOS and OpenVMS

## Ways to run it

### Ghostscript (AGPL)

You run it, AGPL-3.0-or-later. Price: free.[^3][^4]

Not included:

- use in closed-source products or server-based services without releasing their source

You arrange:

- release the full source code of systems built with Ghostscript under the AGPL, including network services

Self-hosting docs: https://github.com/ArtifexSoftware/ghostpdl/blob/master/LICENSE

### Ghostscript commercial licence

You run it, under a commercial licence. Price: contact sales.[^4][^5]

Only in this edition:

- no source code disclosure
- unlimited distribution (OEM)
- SaaS and in-house use
- technical support

Self-hosting docs: https://artifex.com/licensing

## Capabilities

- Has a command line tool: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.32 out of 1.
Signals: backing 0.30, extensibility 0.20.

- backed by Artifex Software

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [MuPDF](https://talira.ai/catalog/mupdf-a0hpyn67.md): The ultimate library for managing PDF documents
- [Apache PDFBox](https://talira.ai/catalog/apache-pdfbox-79k8kxaj.md): The Apache PDFBox library is an open source Java tool for working with PDF documents.
- [qpdf](https://talira.ai/catalog/qpdf-m21640ex.md): A content-preserving PDF document transformer

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
[^3]: https://github.com/ArtifexSoftware/ghostpdl/blob/master/LICENSE (checked 20 Nov 2026)
[^4]: https://artifex.com/licensing (checked 20 Nov 2026)
[^5]: https://www.ghostscript.com/licensing/index.html (checked 20 Nov 2026)
[^6]: https://www.ghostscript.com/releases/index.html (checked 20 Nov 2026)
[^7]: https://ghostscript.readthedocs.io/en/latest/Install.html (checked 20 Nov 2026)
