tailieunhanh - Common UNIX Printing System Sweet phần 5

Bởi vì những khác biệt về hệ điều hành, bạn có thể hoặc có thể không cần phải sử dụng thư viện mạng bổ sung với CUPS. Cách dễ nhất để quản lý những khác biệt này là sử dụng các phần mềm GNU autoconf để xác định vị trí các thư viện cần thiết và cấu hình mã nguồn của bạn. Các thư viện CUPS được cung cấp dưới hai giấy phép. | previous page page_230 next page Page 230 Because of operating system differences you may or may not need to use additional networking libraries with CUPS. The easiest way to manage these differences is to use the GNU autoconf software to locate the necessary libraries and configure your source code. The CUPS libraries are provided under two licenses. The cups library is provided under the LGPL to provide the most flexibility when developing and distributing software. The cupsimage library is provided under the GPL and requires software using that library to be distributed under the GPL as well. previous page page_230 next page previous page page_231 next page Page 231 CHAPTER 14 Using CUPS API Functions previous page page_231 next page previous page page_232 next page Page 232 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 default printer and list of printers respectively. A third function cupsGetClasses is also available to retrieve the list of printer classes from the server. The cupsGetDefault function takes no arguments and returns the name of the current default printer or class. If no default printer or class is defined a NULL pointer is returned instead const char defdest defdest cupsGetDefault if defdest NULL printf Default destination is s. n defdest else puts No default destination available. The string that .

TỪ KHÓA LIÊN QUAN