O'Reilly logo

Common UNIX Printing System by Michael R. Sweet

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 14Using CUPS API Functions

This chapter will show you how to use the CUPS API functions to get the list of available printers and classes, submit print jobs, and manage print jobs from your application. You'll also learn how to access PostScript Printer Description (PPD) files from your application and use them to display printer-specific options and customize your output for a particular printer.

Printing Services

CUPS provides many functions to manage printers, classes, jobs, and options.

Managing Printers and Classes

CUPS supports both printers and classes of printers. The first CUPS program in Chapter 13, “Overview of CUPS Programming,” introduced two CUPS functions, cupsGetDefault() cupsGetPrinters(), which retrieved the current ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required