Contents

PMSetJobNameCFString

Specifies the name of a print job.

Declaration

OSStatus PMSetJobNameCFString (
   PMPrintSettings printSettings,
   CFStringRef name
);

Parameters

  • printSettings:

    The print settings object whose job name you want to set.

  • name:

    The new name for the print job.

Return Value

A result code. See Result Codes. The result code kPMInvalidParameter is returned if you pass NULL or an empty string in the name parameter.

Overview

You should call this function before you open the Print dialog.

If you call this function after initiating a print job, the change is ignored for the current job.

See Also

Accessing Data in Print Settings Objects