PMPaperGetPrinterID(_:_:)
Obtains the printer ID of the printer to which a given paper corresponds.
Declaration
func PMPaperGetPrinterID(_ paper: PMPaper, _ printerID: UnsafeMutablePointer<Unmanaged<CFString>?>) -> OSStatusParameters
- paper:
The paper whose printer ID you want to obtain.
- printerID:
A pointer to your Cfstring variable. On return, the variable refers to a Core Foundation string that contains the printer ID for the specified paper. If an error occurs, the variable is set to
NULL. You should not release the string without first retaining it.
Return Value
A result code. See Result Codes.
Discussion
Not all papers have a printer ID associated with them. If the printer ID is known, the printer is displayed in the Page Setup dialog’s Format for pop-up menu. If the printer ID is not known, the default formatting printer is the generic Any Printer. The printing system provides default paper sizes for the generic printer.