---
title: "PMCopyAvailablePPDs(_:_:)"
framework: applicationservices
role: symbol
role_heading: Function
path: applicationservices/1464170-pmcopyavailableppds
---

# PMCopyAvailablePPDs(_:_:)

Obtains the list of PostScript printer description (PPD) files in a PPD domain.

## Declaration

```swift
func PMCopyAvailablePPDs(_ domain: PMPPDDomain, _ ppds: UnsafeMutablePointer<Unmanaged<CFArray>?>) -> OSStatus
```

## Parameters

- `domain`: The PPD domain to search. See doc://com.apple.documentation/documentation/applicationservices/pmppddomain for a description of the constants you can use to specify the domain.
- `ppds`: A pointer to your doc://com.apple.corefoundation/documentation/CoreFoundation/CFArray variable. On return, the variable refers to a Core Foundation array of PPD files in the specified domain. Each element in the array is a Core Foundation URL object that specifies the location of a PPD file or a compressed PPD file. You are responsible for releasing the array. If the specified domain is not valid, the variable is set to NULL.

## Return Value

Return Value A result code. See Result Codes.

## See Also

### Accessing PostScript Printer Description Files

- [PMCopyLocalizedPPD(_:_:)](applicationservices/1459690-pmcopylocalizedppd.md)
- [PMCopyPPDData(_:_:)](applicationservices/1460345-pmcopyppddata.md)
