talira

Ghostscript

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

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

free34

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

Ghostscript commercial licence

You run it, under a commercial licence

contact sales45

Only in this edition

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

Self-hosting docs

Capabilities

Has a command line toolplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what Ghostscript does.

  1. MuPDF The ultimate library for managing PDF documents
  2. Apache PDFBox The Apache PDFBox library is an open source Java tool for working with PDF documents.
  3. qpdf A content-preserving PDF document transformer

Compare Ghostscript with the top 3