Contents

PMPrinterCopyDescriptionURL(_:_:_:)

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

Declaration

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 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

A result code. See Result Codes.

Discussion

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

See Also

Accessing Information About a Printer