An interpreter for the PostScript language and PDF files
open sourceAGPL-3.0-or-laterself-hostablefree
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 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, licensing is handled only by Artifex.
Ways to install
Package managers
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)
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
Ghostscript commercial licence
Only in this edition
- no source code disclosure
- unlimited distribution (OEM)
- SaaS and in-house use
- technical support
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Has official SDKs | plan not known |
Alternatives
The same job
These do what Ghostscript does.
- MuPDF The ultimate library for managing PDF documents
- Apache PDFBox The Apache PDFBox library is an open source Java tool for working with PDF documents.
- qpdf A content-preserving PDF document transformer