---
title: PMSetPrintSettingsExtendedData
framework: Application Services
role: pseudoSymbol
platforms: []
path: applicationservices/core_printing/1805491-pmsetprintsettingsextendeddata
---

# PMSetPrintSettingsExtendedData

Stores your application-specific data in a print settings object.

## Declaration

```occ
OSStatus PMSetPrintSettingsExtendedData (
   PMPrintSettings printSettings,
   OSType dataID,
   UInt32 size,
   void *extendedData
);
```

## Parameters

- `printSettings`: The print settings object in which to store your application-specific data.
- `dataID`: A 4-character code that will be used to identify your data. The 4-character code must not contain any characters outside the standard ASCII 7-bit character range 0x20–0x7F. This is typically your application’s creator code.
- `size`: The size, in bytes, of the data to be stored in the print settings object.
- `extendedData`: A pointer to a buffer that contains the extended data you want to store.

## Return Value

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

## Overview

You can retrieve the data you store with the function `PMSetPrintSettingsExtendedData` by calling the function `PMGetPrintSettingsExtendedData`.

You may find it easier to use the functions [PMPrintSettingsSetValue](../1461697-pmprintsettingssetvalue.md) and [PMPrintSettingsGetValue](../1460602-pmprintsettingsgetvalue.md) to store and retrieve user-defined data in a print settings object. If you use these functions, make sure that the custom keys you define for your private data do not conflict with other print settings keys.

## See Also

### Accessing Data in Print Settings Objects

- [PMGetPrintSettingsExtendedData](1805488-pmgetprintsettingsextendeddata.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)
- [PMGetJobNameCFString](1805513-pmgetjobnamecfstring.md)
- [PMSetJobNameCFString](1805515-pmsetjobnamecfstring.md)
