---
title: "PMPrinterCopyDescriptionURL(_:_:_:)"
framework: applicationservices
role: symbol
role_heading: Function
path: applicationservices/1459187-pmprintercopydescriptionurl
---

# PMPrinterCopyDescriptionURL(_:_:_:)

Obtains the URL of the description file for a given printer.

## Declaration

```swift
func PMPrinterCopyDescriptionURL(_ printer: PMPrinter, _ descriptionType: CFString, _ fileURL: UnsafeMutablePointer<Unmanaged<CFURL>?>) -> OSStatus
```

## Parameters

- `printer`: The printer whose description file you want to obtain.
- `descriptionType`: A constant that specifies the desired printer description file type. Currently, you must pass the constant kPMPPDDescriptionType.
- `fileURL`: A pointer to your doc://com.apple.corefoundation/documentation/CoreFoundation/CFURL variable. On return, the variable refers to a Core Foundation URL that specifies the location of the file that contains a description of the specified printer. You are responsible for releasing the URL. If an error occurs, the variable is set to NULL.

## Return Value

Return Value A result code. See Result Codes.

## Discussion

Discussion You can use this function to locate the PostScript printer description (PPD) file for a printer.

## See Also

### Accessing Information About a Printer

- [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)
- [PMPrinterGetMimeTypes(_:_:_:)](applicationservices/1460125-pmprintergetmimetypes.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)
