Contents

PMPaperGetPPDPaperName(_:_:)

Obtains the PPD paper name for a given paper.

Declaration

func PMPaperGetPPDPaperName(_ paper: PMPaper, _ paperName: UnsafeMutablePointer<Unmanaged<CFString>?>) -> OSStatus

Parameters

  • paper:

    The paper whose PPD paper name you want to obtain.

  • paperName:

    A pointer to your Cfstring variable. On return, the variable refers to a Core Foundation string that contains the PPD paper name for the specified paper. If an error occurs, the variable is set to NULL. You should not release the string without first retaining it.

Return Value

A result code. See Result Codes.

Discussion

The macOS printing system uses a PostScript Printer Description (PPD) file to describe a given printer and print queue for that printer. The PPD paper name is the name that uniquely identifies a given paper for the printer to which the paper corresponds. To obtain a list of papers for a given printer, use the function PMPrinterGetPaperList(_:_:).

See Also

Accessing Data in Paper Objects