Instance Method

PMPageFormat

Returns a Core Printing object configured with the receiver’s page format information.

Declaration

- (void *)PMPageFormat;

Return Value

A pointer to a PMPageFormat object, an opaque data type that stores information such as the paper size, orientation, and scale of pages in a printing session. You should not call PMRelease to release the returned object, except to balance calls to PMRetain that your code also issued.

Discussion

The information in the returned PMPageFormat object is consistent with the receiver’s page format information at the time this method is called. Subsequent changes to the receiving NSPrintInfo object do not result in changes to the information in the PMPageFormat object.

If you make changes to the data in the PMPageFormat object, you should invoke the updateFromPMPageFormat method to synchronize those changes with the NSPrintInfo object that created the object.

See Also

Accessing Core Printing Information

printSettings

A mutable dictionary containing the print settings from Core Printing.

- PMPrintSession

Returns a Core Printing object configured with the receiver’s session information.

- PMPrintSettings

Returns a Core Printing object configured with the receiver’s print settings information

- updateFromPMPageFormat

Synchronizes the receiver’s page format information with information from its associated PMPageFormat object.

- updateFromPMPrintSettings

Synchronizes the receiver’s print settings information with information from its associated PMPrintSettings object.