PMSessionCopyOutputFormatList(_:_:_:)
Obtains an array of destination formats supported by the current print destination.
Declaration
func PMSessionCopyOutputFormatList(_ printSession: PMPrintSession, _ destType: PMDestinationType, _ documentFormatP: UnsafeMutablePointer<Unmanaged<CFArray>?>) -> OSStatusParameters
- printSession:
The printing session that provides a context for the print job. The printer associated with this session is queried for the MIME types it supports.
- destType:
A destination type that specifies the destination for which you want to obtain valid destination formats. See Pmdestinationtype for a list of the possible destination types a print job can have.
- documentFormatP:
A pointer to your Cfarray variable. On return, the variable refers to a Core Foundation array that contains a list of destination formats that can be generated for the current print destination. See Document_format_strings for a list of some of the output formats that can be returned.
Return Value
A result code. See Result Codes.
Discussion
You must call this function between the creation and release of a printing session. See the function PMCreateSession(_:).