PMPrintSettingsCreateWithDataRepresentation(_:_:)
Creates a print settings object from a data representation.
Declaration
func PMPrintSettingsCreateWithDataRepresentation(_ data: CFData, _ printSettings: UnsafeMutablePointer<PMPrintSettings?>) -> OSStatusParameters
- data:
The data representation of a print settings object. The data representation must have been previously created with the function 1464570 Pmprintsettingscreatedatareprese.
- printSettings:
A pointer to your Pmprintsettings variable. On return, the variable refers to a new print settings object that contains the printing information stored in the specified data object. You are responsible for releasing the print settings object with the function 1461402 Pmrelease.
Return Value
A result code. See Result Codes.
Discussion
This function is typically used to convert a data representation stored in a user document back into a print settings object. For information about creating a Core Foundation data object from raw data, see CFData.
After calling this function, you should call the function PMSessionValidatePrintSettings(_:_:_:) to make sure the print settings object contains valid values.