---
title: "PMSessionCopyOutputFormatList(_:_:_:)"
framework: applicationservices
role: symbol
role_heading: Function
path: applicationservices/1461332-pmsessioncopyoutputformatlist
---

# PMSessionCopyOutputFormatList(_:_:_:)

Obtains an array of destination formats supported by the current print destination.

## Declaration

```swift
func PMSessionCopyOutputFormatList(_ printSession: PMPrintSession, _ destType: PMDestinationType, _ documentFormatP: UnsafeMutablePointer<Unmanaged<CFArray>?>) -> OSStatus
```

## Parameters

- `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 doc://com.apple.documentation/documentation/applicationservices/pmdestinationtype for a list of the possible destination types a print job can have.
- `documentFormatP`: A pointer to your doc://com.apple.corefoundation/documentation/CoreFoundation/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 doc://com.apple.documentation/documentation/applicationservices/core_printing/document_format_strings for a list of some of the output formats that can be returned.

## Return Value

Return Value A result code. See Result Codes.

## Discussion

Discussion You must call this function between the creation and release of a printing session. See the function PMCreateSession(_:).

## See Also

### Accessing the Print Job Destination

- [PMSessionSetDestination(_:_:_:_:_:)](applicationservices/1459855-pmsessionsetdestination.md)
- [PMSessionGetDestinationType(_:_:_:)](applicationservices/1461071-pmsessiongetdestinationtype.md)
- [PMSessionCopyDestinationFormat(_:_:_:)](applicationservices/1464266-pmsessioncopydestinationformat.md)
- [PMSessionCopyDestinationLocation(_:_:_:)](applicationservices/1462967-pmsessioncopydestinationlocation.md)
