Print to PDF on Linux — set up a system-wide PDF printer with cups-pdf (2026)
cups-pdf gives you a virtual printer that writes a PDF instead of printing to paper — available system-wide to every application, from the command line, and over the network from a headless box. Install it, restart CUPS, and your PDFs land in ~/PDF.