---
title: "PMCopyLocalizedPPD(_:_:)"
framework: applicationservices
role: symbol
role_heading: Function
path: applicationservices/1459690-pmcopylocalizedppd
---

# PMCopyLocalizedPPD(_:_:)

Obtains a localized PostScript printer description (PPD) file.

## Declaration

```swift
func PMCopyLocalizedPPD(_ ppd: CFURL, _ localizedPPD: UnsafeMutablePointer<Unmanaged<CFURL>?>) -> OSStatus
```

## Parameters

- `ppd`: A Core Foundation URL object for a PPD file. You can obtain a PPD URL using the function doc://com.apple.documentation/documentation/applicationservices/1464170-pmcopyavailableppds.
- `localizedPPD`: A pointer to your doc://com.apple.corefoundation/documentation/CoreFoundation/CFURL variable. On return, the variable refers to a Core Foundation URL object. The URL specifies the location of a PPD file or a compressed PPD file that has been localized for the current user's language preference. You are responsible for releasing the URL. If the ppd parameter is not valid, the variable is set to NULL.

## Return Value

Return Value A result code. See Result Codes.

## Discussion

Discussion To access the data in the PPD file, you can use the function PMCopyPPDData(_:_:). Special Considerations In macOS 10.5 and later, the printing system supports globalized PPD files as defined in CUPS version 1.2 and later. A globalized PPD file contains multiple localizations within a single file. If a globalized PPD file exists, this function returns the URL to this file and it is up to the application to obtain the correct localized data. For more information, see CUPS PPD Extensions.

## See Also

### Accessing PostScript Printer Description Files

- [PMCopyAvailablePPDs(_:_:)](applicationservices/1464170-pmcopyavailableppds.md)
- [PMCopyPPDData(_:_:)](applicationservices/1460345-pmcopyppddata.md)
