Contents

PMPaperGetName

Obtains the name for a given paper.

Declaration

OSStatus PMPaperGetName (
   PMPaper paper,
   CFStringRef *paperName
);

Parameters

  • paper:

    The paper whose name you want to obtain.

  • paperName:

    A pointer to your Cfstring variable. On return, the variable refers to a Core Foundation string containing the name for this paper. This name identifies the paper in the user interface. You should not release the string without first retaining it.

Return Value

A result code. See Result Codes.

Overview

This function does not necessarily return a paper name that’s localized for a given printer. In macOS 10.5 and later, instead of using this function, Apple recommends using the function PMPaperCreateLocalizedName.

See Also

Accessing Data in Paper Objects