Concepts printing

Jump to: navigation, search


This article explains printing concepts in Linux with CUPS (version 2.4+).

It covers both modern driverless printing (PDF via IPP) and traditional driver-based printing using PPD files, as well as native PostScript printers.

The explanations reflect current CUPS behavior under Linux, including print queues, printer communication, and network printing.


Overview

Printing on modern Linux systems has evolved significantly over the past two decades.

Originally, printing was based on PostScript-centric workflows using PPD files and complex filter chains inside CUPS. Today, most printers support driverless IPP printing, and applications typically send PDF data directly to the printer via CUPS without requiring manufacturer-specific drivers.

This page explains:

  • How modern driverless printing works (IPP Everywhere / AirPrint)
  • How traditional driver-based printing worked and when it is still relevant
  • The roles of PDF and PostScript in Linux printing
  • How CUPS processes print jobs using print queues

Understanding both the modern and historical models helps explain why Linux printing behaves the way it does today.

Modern Driverless Printing

Most printers sold today support driverless printing using Internet Printing Protocol (IPP). Common standards include IPP Everywhere and Apple AirPrint. These standards allow a printer to advertise its capabilities (paper sizes, duplex support, color modes, etc.) without requiring a manufacturer-specific driver.

More info:

https://openprinting.github.io/driverless/01-standards-and-their-pdls/


How It Works

In a modern setup, the CUPS workflow is typically:

Application --> PDF --> CUPS --> IPP --> Printer

  • Applications generate print jobs in PDF format.
  • CUPS forwards the job using IPP.
  • The printer processes the PDF data directly or converts it internally.

No PPD file or external driver package is required.


Automatic Discovery

Network printers are usually discovered automatically via DNS-SD (mDNS), commonly provided by the Avahi service. When working correctly, printers appear automatically in desktop printer configuration tools.

In most cases, no additional configuration beyond selecting the printer is required.


Legacy Driver-Based Printing

Before driverless IPP printing became common, printers typically required manufacturer-specific drivers, PPD (PostScript Printer Description) files, and associated filters to convert print jobs into device-specific formats. This traditional model is still available and relevant for older printers and some enterprise devices

How It Works

The classic CUPS workflow:

Application --> PDF or PostScript --> Filter chain --> CUPS Backend --> Printer

(Starting with CUPS 1.6 (released around 2012), the standard print job format officially shifted from PostScript to PDF.)

  • CUPS uses a filter chain to convert the job into a printer-specific format.
  • A PPD file used to describe the printer’s capabilities and print options.
  • The backend transmits the processed job to the printer (USB, socket, LPD, etc.).

This model allowed support for many printer types, including:

  • Native PostScript printers.
  • Non-PostScript printers requiring raster conversion.
  • Proprietary or host-based printers.


Why This Model Is Being Phased Out

Most modern printers can report their capabilities directly using standardized IPP attributes. This eliminates the need for PPD files and complex filter chains. CUPS development is moving toward an IPP-only model, reducing or removing support for traditional driver-based workflows. For now, PPD-based printing configuration remains supported.

CUPS Standard Print Data Formats

PDF

PDF (Portable Document Format) has become the standard print job format for most Linux systems, particularly since CUPS 1.6. Applications generate PDF output, which is sent to the printer or print server.

Key points about PDF printing:

  • PDF preserves layout, fonts, and graphics exactly as designed, making printed output consistent.
  • CUPS 1.6 and later treat PDF as the native job format, simplifying printing workflows.
  • Printers that support PDF directly, or via driverless IPP, can receive and process PDF jobs without additional filters or drivers.

PDF is now the dominant format for modern printing because it reduces complexity, improves reliability, and ensures that what the user sees on screen matches the printed output.


PostScript

PostScript is a page description language developed by Adobe in the 1980s. It was historically central to Unix and Linux printing systems and formed the backbone of early CUPS workflows.

Key points about PostScript:

  • Printers that support native PostScript can receive jobs directly without additional conversion.
  • PostScript was the default intermediate format in traditional CUPS filter chains, with PPD files describing printer capabilities.
  • It remains widely used in enterprise and professional environments where precise page description, scalable graphics, or complex layouts are required.
  • PostScript workflows often involve converting application output (e.g., PDF, text, or images) into PostScript for the printer.

Although PDF has largely replaced PostScript for general desktop and driverless printing, PostScript continues to be important for:

  • Legacy printers without native PDF support
  • High-end publishing or enterprise printing
  • Situations requiring exact page control and advanced graphics features


CUPS: The Print System

The Common Unix Printing System (CUPS) is the printing system used by openSUSE and most other Unix-like operating systems. It manages print queues, processes print jobs, and communicates with printer devices.

CUPS was created by Michael Sweet at Easy Software Products (1997–2007), acquired by Apple who led its development (2007–2019), and after Apple’s development stalled, the OpenPrinting project took over Linux-focused development from 2020 onward.


Print Queues

Applications do not send print data directly to a printer device. Instead, they send print jobs to a print queue managed by CUPS.

The print queue:

  • Receives jobs from applications
  • Stores them temporarily
  • Sends them to the printer one at a time

CUPS handles the print job processing allowing the application to continue running.

When configuring a printer, you're actually creating a print queue within CUPS.


Printer vs Print Queue

Within the operating system, what is commonly called a "printer" usually refers to a print queue managed by CUPS, not the physical device itself.

A print queue manages jobs submitted by applications and communicates with the printer to process them. Most modern backends (USB, IPP, and network protocols) support bi-directional communication, so the queue status generally reflects the actual printer state. (Exceptions exist for very old or non-standard printers that do not fully support status reporting. In these cases, the queue may indicate “ready” even if the device has a problem.)


CUPS as a Network Print Server

CUPS can also act as a network print server, allowing other computers to submit print jobs to it over the network using the IPP protocol.

In this role, a CUPS server can:

  • Share local printers with remote clients
  • Forward print jobs to other CUPS servers or IPP printers
  • Enforce access control and manage job permissions

Network clients see shared printers as if they were local queues, and the server handles queuing, scheduling, and format conversion.

This makes CUPS suitable for both single-user desktop setups and multi-user office environments.


Further Information