Version: 1.0

Posted: 2009-10-09

Build Requirements: Mac OS X v10.6 or later

Runtime Requirements: Mac OS X v10.4 or later

View Source Code:

Download Sample Code (“SampleRaster.zip”, 146.5K)



Description

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.

Document Revision History

Date Notes
2009-10-09Sample CUPS raster printer driver