Contents

PMPrinterGetDescriptionURL

Obtains a reference to the specified printer’s description file.

Declaration

OSStatus PMPrinterGetDescriptionURL (
   PMPrinter printer,
   CFStringRef descriptionType,
   CFURLRef *fileURL
);

Parameters

  • printer:

    The printer whose description file you want to obtain.

  • descriptionType:

    A Core Foundation string that specifies the type of description file for the selected printer. Currently, there is only one type defined—kPMPPDDescriptionType.

  • fileURL:

    A pointer to your Cfurl variable. On return, the variable refers to a URL for the printer’s description file. In spite of the name, the function PMPrinterGetDescriptionURL has Create/Copy semantics which means the caller must release the returned URL if it is not NULL and the result code noErr is returned.

Return Value

A result code. See Result Codes.

Overview

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

See Also

Accessing Information About a Printer