Contents

PMPrinterGetMimeTypes(_:_:_:)

Obtains a list of MIME content types supported by a printer using the specified print settings.

Declaration

func PMPrinterGetMimeTypes(_ printer: PMPrinter, _ settings: PMPrintSettings?, _ mimeTypes: UnsafeMutablePointer<Unmanaged<CFArray>?>) -> OSStatus

Parameters

  • printer:

    The printer whose supported MIME types you want to obtain.

  • settings:

    The print settings for the print job. The print settings object contains the job destination, which affects the available types. This parameter may be NULL.

  • mimeTypes:

    A pointer to your Cfarray variable. On return, the variable refers to a Core Foundation array containing the MIME types supported by the specified printer. Each element in the array is a Core Foundation string. You should not release the array without first retaining it.

Return Value

A result code. See Result Codes.

Discussion

This function retrieves the types of data that can be submitted to a printer with the specified print settings; for example, application/pdf. This function is typically used in conjunction with the function PMPrinterPrintWithFile(_:_:_:_:_:).

See Also

Accessing Information About a Printer