---
title: PMGetJobNameCFString
framework: Application Services
role: pseudoSymbol
platforms: []
path: applicationservices/core_printing/1805513-pmgetjobnamecfstring
---

# PMGetJobNameCFString

Obtains the name of the print job.

## Declaration

```occ
OSStatus PMGetJobNameCFString (
   PMPrintSettings printSettings,
   CFStringRef *name
);
```

## Parameters

- `printSettings`: The print settings object whose job name you want to obtain.
- `name`: A pointer to your [doc://com.apple.corefoundation/documentation/CoreFoundation/CFString](corefoundation/cfstring.md) variable. On return, the variable refers to a string that contains the name of the print job. Despite what its name implies, the function `PMGetJobNameCFString` has Create/Copy semantics which means your application must release the string returned to it.

## Return Value

A result code. See [Result Codes](../core_printing.md).

## See Also

### Accessing Data in Print Settings Objects

- [PMGetPrintSettingsExtendedData](1805488-pmgetprintsettingsextendeddata.md)
- [PMSetPrintSettingsExtendedData](1805491-pmsetprintsettingsextendeddata.md)
- [PMGetFirstPage](../1460271-pmgetfirstpage.md)
- [PMSetFirstPage](../1461519-pmsetfirstpage.md)
- [PMGetLastPage](../1462747-pmgetlastpage.md)
- [PMSetLastPage](../1463595-pmsetlastpage.md)
- [PMGetPageRange](../1459324-pmgetpagerange.md)
- [PMSetPageRange](../1462294-pmsetpagerange.md)
- [PMPrintSettingsGetJobName](../1459233-pmprintsettingsgetjobname.md)
- [PMPrintSettingsSetJobName](../1460149-pmprintsettingssetjobname.md)
- [PMGetCopies](../1464480-pmgetcopies.md)
- [PMSetCopies](../1463804-pmsetcopies.md)
- [PMGetCollate](../1464492-pmgetcollate.md)
- [PMSetCollate](../1463223-pmsetcollate.md)
- [PMGetDuplex](../1458921-pmgetduplex.md)
- [PMSetDuplex](../1462000-pmsetduplex.md)
- [PMPrintSettingsGetValue](../1460602-pmprintsettingsgetvalue.md)
- [PMPrintSettingsSetValue](../1461697-pmprintsettingssetvalue.md)
- [PMPrintSettingsCopyAsDictionary](../1459088-pmprintsettingscopyasdictionary.md)
- [PMPrintSettingsCopyKeys](../1462730-pmprintsettingscopykeys.md)
- [PMSetJobNameCFString](1805515-pmsetjobnamecfstring.md)
