Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
SampleRaster
Last Revision: | Version 4.0, 2011-09-06 Now use GCD for supply level view. Also updated to build using current Xcode 4 tools on Snow Leopard and Lion. (Full Revision History) |
Build Requirements: | Mac OS X v10.6 or later |
Runtime Requirements: | Mac OS X v10.6 or later |
The SampleRaster project implements a CUPS printer driver that simulates a typical CMYK inkjet raster printer. The driver provides the following components:
- CUPS raster filter (rastertosample) - CUPS command filter (commandtosample) - CUPS backend (sampletopdf) - Cocoa-based printer utility application (SampleUtility.app) - Cocoa-based print dialog plugin (SampleRasterPDE.bundle) - Printer icon - ICC color profiles - iPhoto/Preview printer presets - Custom printer-state-reason keywords - On-line help - Driver information file (sample.drv) which is compiled into a PPD file (sample.ppd).
The CUPS backend is provided for testing purposes only. Most printer drivers do not require their own backend - the system-supplied backends handle all standard interfaces and network protocols for printing - and very few backends are as complicated as the sampletopdf backend.
Copyright © 2011 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2011-09-06