Contents

Core Printing

Overview

Core Printing is a C API that Mac apps and command line tools can use to perform printing tasks that don’t display a user interface. Core Printing defines a set of opaque types and a rich set of operations on instances of these types. The Core Printing opaque types include:

  • PMPrintSession for general information about a print job

  • PMPrintSettings for print job parameters

  • PMPageFormat for the page format of a printed document

  • PMPaper for information about a type of paper

  • PMPrinter for information about a printer

In Carbon applications, Core Printing is used together with Carbon Printing to implement printing features. For more information about Carbon Printing, see Carbon Printing Reference.

In Cocoa applications, Core Printing can be used to extend the functionality in the Cocoa printing classes. The NSPrintInfo class provides direct access to some Core Printing objects.

Topics

Releasing and Retaining Printing Objects

Creating and Using Page Format Objects

Accessing Data in Page Format Objects

Creating and Using Print Settings Objects

Accessing Data in Print Settings Objects

Creating Printing Session Objects

Accessing Data in Printing Session Objects

Using Printer Presets

Creating and Using Paper Objects

Accessing Data in Paper Objects

Print Loop Functions

Accessing the Print Job Destination

Creating Printer Objects

Accessing Information About a Printer

Submitting a Print Job to a Printer

Accessing PostScript Printer Description Files

Printing with PostScript Data

Using PDF Workflow Items

Data Types

Constants

Result Codes