Contents

PMPrinterCreateFromPrinterID(_:)

Creates a printer object from a print queue identifier.

Declaration

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

Parameters

  • printerID:

    The unique identifier of a print queue.

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

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

Related Documentation