PMPrinterCopyDescriptionURL(_:_:_:)
Obtains the URL of the description file for a given printer.
Declaration
func PMPrinterCopyDescriptionURL(_ printer: PMPrinter, _ descriptionType: CFString, _ fileURL: UnsafeMutablePointer<Unmanaged<CFURL>?>) -> OSStatusParameters
- 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
PMPrinterCopyDeviceURI(_:_:)PMPrinterCopyHostName(_:_:)PMPrinterCopyPresets(_:_:)PMPrinterGetCommInfo(_:_:_:)PMPrinterGetDriverCreator(_:_:)PMPrinterGetID(_:)PMPrinterGetLocation(_:)PMPrinterGetMakeAndModelName(_:_:)PMPrinterGetMimeTypes(_:_:_:)PMPrinterGetName(_:)PMPrinterGetOutputResolution(_:_:_:)PMPrinterSetOutputResolution(_:_:_:)PMPrinterGetPaperList(_:_:)PMPrinterGetPrinterResolutionCount(_:_:)PMPrinterGetIndexedPrinterResolution(_:_:_:)PMPrinterGetState(_:_:)PMPrinterSetDefault(_:)PMPrinterIsDefault(_:)PMPrinterIsFavorite(_:)PMPrinterIsPostScriptCapable(_:)PMPrinterIsPostScriptPrinter(_:_:)PMPrinterIsRemote(_:_:)