PMPrintSettingsToOptions(_:_:)
Converts print settings into a CUPS options string.
Declaration
func PMPrintSettingsToOptions(_ settings: PMPrintSettings, _ options: UnsafeMutablePointer<UnsafeMutablePointer<CChar>?>) -> OSStatusParameters
- settings:
The print settings to convert.
- options:
A pointer to a C string. On return, a CUPS options string describing the print settings, or
NULLif the print settings could not be converted. The function allocates storage for the string. You are responsible for freeing the storage.
Return Value
A result code. See Result Codes.
Discussion
This function creates a CUPS options string that captures the data in the specified print settings object. In macOS 10.5 and later, Apple recommends that you use the PMPrintSettingsToOptionsWithPrinterAndPageFormat(_:_:_:_:) function instead.