---
title: "PMPrinterGetMimeTypes(_:_:_:)"
framework: applicationservices
role: symbol
role_heading: Function
path: applicationservices/1460125-pmprintergetmimetypes
---

# PMPrinterGetMimeTypes(_:_:_:)

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

## Declaration

```swift
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 doc://com.apple.corefoundation/documentation/CoreFoundation/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

Return Value A result code. See Result Codes.

## Discussion

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

- [PMPrinterCopyDescriptionURL(_:_:_:)](applicationservices/1459187-pmprintercopydescriptionurl.md)
- [PMPrinterCopyDeviceURI(_:_:)](applicationservices/1460543-pmprintercopydeviceuri.md)
- [PMPrinterCopyHostName(_:_:)](applicationservices/1462076-pmprintercopyhostname.md)
- [PMPrinterCopyPresets(_:_:)](applicationservices/1459117-pmprintercopypresets.md)
- [PMPrinterGetCommInfo(_:_:_:)](applicationservices/1461069-pmprintergetcomminfo.md)
- [PMPrinterGetDriverCreator(_:_:)](applicationservices/1459107-pmprintergetdrivercreator.md)
- [PMPrinterGetID(_:)](applicationservices/1459606-pmprintergetid.md)
- [PMPrinterGetLocation(_:)](applicationservices/1461467-pmprintergetlocation.md)
- [PMPrinterGetMakeAndModelName(_:_:)](applicationservices/1463347-pmprintergetmakeandmodelname.md)
- [PMPrinterGetName(_:)](applicationservices/1459018-pmprintergetname.md)
- [PMPrinterGetOutputResolution(_:_:_:)](applicationservices/1459076-pmprintergetoutputresolution.md)
- [PMPrinterSetOutputResolution(_:_:_:)](applicationservices/1459931-pmprintersetoutputresolution.md)
- [PMPrinterGetPaperList(_:_:)](applicationservices/1460088-pmprintergetpaperlist.md)
- [PMPrinterGetPrinterResolutionCount(_:_:)](applicationservices/1462004-pmprintergetprinterresolutioncou.md)
- [PMPrinterGetIndexedPrinterResolution(_:_:_:)](applicationservices/1464490-pmprintergetindexedprinterresolu.md)
- [PMPrinterGetState(_:_:)](applicationservices/1462954-pmprintergetstate.md)
- [PMPrinterSetDefault(_:)](applicationservices/1461118-pmprintersetdefault.md)
- [PMPrinterIsDefault(_:)](applicationservices/1459030-pmprinterisdefault.md)
- [PMPrinterIsFavorite(_:)](applicationservices/1462074-pmprinterisfavorite.md)
- [PMPrinterIsPostScriptCapable(_:)](applicationservices/1464168-pmprinterispostscriptcapable.md)
- [PMPrinterIsPostScriptPrinter(_:_:)](applicationservices/1462257-pmprinterispostscriptprinter.md)
- [PMPrinterIsRemote(_:_:)](applicationservices/1461377-pmprinterisremote.md)
