---
title: "PMCopyPPDData(_:_:)"
framework: applicationservices
role: symbol
role_heading: Function
path: applicationservices/1460345-pmcopyppddata
---

# PMCopyPPDData(_:_:)

Obtains the uncompressed PPD data for a PostScript printer description (PPD) file.

## Declaration

```swift
func PMCopyPPDData(_ ppd: CFURL, _ data: UnsafeMutablePointer<Unmanaged<CFData>?>) -> OSStatus
```

## Parameters

- `ppd`: A URL for a PPD or compressed PPD file. You can obtain a PPD URL using the function doc://com.apple.documentation/documentation/applicationservices/1464170-pmcopyavailableppds or doc://com.apple.documentation/documentation/applicationservices/1459690-pmcopylocalizedppd.
- `data`: A pointer to your doc://com.apple.corefoundation/documentation/CoreFoundation/CFData variable. On return, the variable refers to a Core Foundation data object containing the uncompressed PPD data from the specified PPD file. You are responsible for releasing the data object. If the ppd parameter does not reference a PPD file, the variable is set to NULL.

## Return Value

Return Value A result code. See Result Codes.

## See Also

### Accessing PostScript Printer Description Files

- [PMCopyAvailablePPDs(_:_:)](applicationservices/1464170-pmcopyavailableppds.md)
- [PMCopyLocalizedPPD(_:_:)](applicationservices/1459690-pmcopylocalizedppd.md)
