The CUPS Book, "CUPS: Common UNIX Printing System", is the definitive guide to CUPS. Although originally written before CUPS 1.2 was released, the book is still relevant to current versions of CUPS and it an indispensible companion for any administrator or developer that uses CUPS. This page provides access to the example code in the book as well as corrections and updates since the book's publication.
The CUPS book, published by SAMS Publishing, may be purchased from Amazon.com. Note, however, that the companion CD is not provided with the book and is no longer available from the author. The sources from the original companion CD are provided here instead.
... Additionally, IIP supports encryption ...
... Additionally, IPP supports encryption ...
CUPS also now provides drivers for Dymo label printers using the
dymo.ppd PPD file.
KUPS has been superceded by KDE Print, available at:
The correct command to extract the CUPS source code is:
tar xvzf /mnt/cdrom/source/cups-version-source.tar.gz ENTER
The description for the PNG library contains part of the URL for the PNG home page.
The correct option for specifying the font page is
--with-fontpath and not
The acronym SLP stands for Service Location Protocol, not Server Location Protocol.
configure options are not described.
The correct script to run from the CD-ROM is
... DTE-DSR flow control would need the following device URI:serial://dev/ttyS0?baud=19200+bits=7+parity=even+flow=dtedsr
... DTR-DSR flow control would need the following device URI:serial:/dev/ttyS0?baud=19200+bits=7+parity=even+flow=dtrdsr
lpadmin -p name --o option=value ENTER
lpadmin -p name -o option=value ENTER
natural-scaling option is not described:
natural-scaling: Sets the size of the image in percent of the natural image size.
natural-scalingvalue is a percentage from 1 to 800. The percentage is based on the natural image size and not the page size.
The examples are provided on the CUPS Companion CD-ROM in the
examples | +-LICENSE.txt [License file referenced by sources] | +-chap13 [13 - Overview of CUPS Programming] | +-chap14 [14 - Using CUPS API Functions] | +-chap15 [15 - Sending IPP Requests Using CUPS] | +-chap17 [17 - Writing Printer Drivers for CUPS]
You can also download an archive of all the examples: examples.tar.gz