PMSetPrintSettingsExtendedData
Stores your application-specific data in a print settings object.
Declaration
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.
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 and PMPrintSettingsGetValue 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
PMGetPrintSettingsExtendedDataPMGetFirstPagePMSetFirstPagePMGetLastPagePMSetLastPagePMGetPageRangePMSetPageRangePMPrintSettingsGetJobNamePMPrintSettingsSetJobNamePMGetCopiesPMSetCopiesPMGetCollatePMSetCollatePMGetDuplexPMSetDuplexPMPrintSettingsGetValuePMPrintSettingsSetValuePMPrintSettingsCopyAsDictionaryPMPrintSettingsCopyKeysPMGetJobNameCFStringPMSetJobNameCFString