---
title: "PMPrinterCreateFromPrinterID(_:)"
framework: applicationservices
role: symbol
role_heading: Function
path: applicationservices/1461363-pmprintercreatefromprinterid
---

# PMPrinterCreateFromPrinterID(_:)

Creates a printer object from a print queue identifier.

## Declaration

```swift
func PMPrinterCreateFromPrinterID(_ printerID: CFString) -> PMPrinter?
```

## Parameters

- `printerID`: The unique identifier of a print queue.

## Return Value

Return Value A new printer object, or NULL if no print queue is available with the specified identifier. You are responsible for releasing the printer object with the function PMRelease(_:).

## Discussion

Discussion This function is typically used to re-create a printer object using the print queue ID obtained by a call to PMPrinterGetID at an earlier time. If the print queue is deleted after obtaining the ID, this function returns NULL for that ID.

## See Also

### Creating Printer Objects

- [PMServerLaunchPrinterBrowser(_:_:)](applicationservices/1460175-pmserverlaunchprinterbrowser.md)
- [PMServerCreatePrinterList(_:_:)](applicationservices/1459953-pmservercreateprinterlist.md)
- [PMSessionCreatePrinterList(_:_:_:_:)](applicationservices/1460119-pmsessioncreateprinterlist.md)
- [PMCreateGenericPrinter(_:)](applicationservices/1461960-pmcreategenericprinter.md)

### Related Documentation

- [PMPrinterGetID(_:)](applicationservices/1459606-pmprintergetid.md)
