| Framework | ApplicationServices/ApplicationServices.h, Carbon/Carbon.h |
| Declared in | PMDefinitions.h PMDefinitionsDeprecated.h PMTemplate.h PMTicket.h PMTicketDeprecated.h |
Ticket Services provides the functions and data types used to communicate printing information (page format and print settings) among the various modules in the printing system. Developers who write printing dialog extensions and printer modules need to use the functions described in this reference and also need to consult the Printing Plug-in Interfaces Reference. Developers who write applications do not need this reference; see the Carbon Printing Manager Reference instead.
PMTicketCreate
PMTicketValidate
PMTicketRetain
PMTicketRemoveTicket
PMTicketRelease
PMTicketReleaseAndClear
PMTicketCopy
PMTicketCreateTemplate
PMTicketCopyItem
PMTicketReleaseItem
PMTicketDeleteItem
PMTicketLockItem
PMTicketUnlockItem
PMTicketIsItemLocked
PMTicketConfirmTicket
PMTicketContainsItem
PMTicketContainsTicket
PMTicketFillFromArray
PMTicketSetBoolean
PMTicketSetBytes
PMTicketSetCFArray
PMTicketSetCFBoolean
PMTicketSetCFData
PMTicketSetCFDate
PMTicketSetCFDictionary
PMTicketSetCFNumber
PMTicketSetCFString
PMTicketSetCString
PMTicketSetCStringArray
PMTicketSetDouble
PMTicketSetDoubleArray
PMTicketSetItem
PMTicketSetPMRect
PMTicketSetPMRectArray
PMTicketSetPMResolution
PMTicketSetPMResolutionArray
PMTicketSetPString
PMTicketSetSInt32
PMTicketSetSInt32Array
PMTicketSetTemplate
PMTicketSetTicket
PMTicketSetUInt32
PMTicketSetUInt32Array
PMTicketGetAllocator
PMTicketGetAPIVersion
PMTicketGetBoolean
PMTicketGetBytes
PMTicketGetCFArray
PMTicketGetCFBoolean
PMTicketGetCFData
PMTicketGetCFDate
PMTicketGetCFDictionary
PMTicketGetCFNumber
PMTicketGetCFString
PMTicketGetCString
PMTicketGetDouble
PMTicketGetEnumType
PMTicketGetIndexPMResolution
PMTicketGetItem
PMTicketGetLockedState
PMTicketGetPMRect
PMTicketGetPMResolution
PMTicketGetPPDDict
PMTicketGetPString
PMTicketGetRetainCount
PMTicketGetSInt32
PMTicketGetTicket
PMTicketGetType
PMTicketGetUInt32
PMTemplateCreate
PMTemplateDelete
PMTemplateMakeEntry
PMTemplateMakeFullEntry
PMTemplateMergeTemplates
PMTemplateRemoveEntry
PMTemplateValidateItem
PMTemplateIsLocked
PMTemplateSetBooleanDefaultValue
PMTemplateSetCFArrayConstraintValue
PMTemplateSetCFDataDefaultValue
PMTemplateSetCFDefaultValue
PMTemplateSetCFRangeConstraint
PMTemplateSetDoubleDefaultValue
PMTemplateSetDoubleListConstraint
PMTemplateSetDoubleRangeDefaultValue
PMTemplateSetDoubleRangeConstraint
PMTemplateSetDoubleRangesConstraint
PMTemplateSetPMRectDefaultValue
PMTemplateSetPMRectListConstraint
PMTemplateSetPMTicketDefaultValue
PMTemplateSetPMTicketListConstraint
PMTemplateSetSInt32DefaultValue
PMTemplateSetSInt32ListConstraint
PMTemplateSetSInt32RangeDefaultValue
PMTemplateSetSInt32RangeConstraint
PMTemplateSetSInt32RangesConstraint
PMTemplateGetValueType
PMTemplateGetConstraintType
PMTemplateGetBooleanDefaultValue
PMTemplateGetCFArrayConstraintValue
PMTemplateGetCFDataDefaultValue
PMTemplateGetCFDefaultValue
PMTemplateGetCFRangeConstraintValue
PMTemplateGetDoubleDefaultValue
PMTemplateGetDoubleRangeDefaultValue
PMTemplateGetDoubleListConstraintValue
PMTemplateGetDoubleRangeConstraintValue
PMTemplateGetDoubleRangesConstraintValue
PMTemplateGetPMRectDefaultValue
PMTemplateGetPMRectListConstraintValue
PMTemplateGetPMTicketDefaultValue
PMTemplateGetListTicketConstraintValue
PMTemplateGetSInt32DefaultValue
PMTemplateGetSInt32RangeDefaultValue
PMTemplateGetSInt32ListConstraintValue
PMTemplateGetSInt32RangeConstraintValue
PMTemplateGetSInt32RangesConstraintValue
PMTemplateCreateXML
PMTicketToXML
PMTicketWriteXML
PMTicketWriteXMLToFile
PMXMLToTicket
PMTemplateLoadFromXML
PMTicketReadXMLFromFile
Creates a new job template.
OSStatus PMTemplateCreate ( PMTemplateRef *newTemplate );
On return, points to a job template data structure allocated by the function.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Converts the data in a job template to data represented as XML.
OSStatus PMTemplateCreateXML ( PMTemplateRef srcTemplate, CFDataRef *xmlData );
A reference to a job template created by calling the function PMTemplateCreate.
On return, points to a reference to an XML representation of the data in the job template specified by the srcTemplate parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Deletes an existing job template.
OSStatus PMTemplateDelete ( PMTemplateRef *oldTemplate );
On input, a reference to a job template created by calling the function PMTemplateCreate. On return, points to NULL.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains the default value for a job template entry of type Boolean.
OSStatus PMTemplateGetBooleanDefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, Boolean *defaultValue );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to the default value for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains an array of constraint values for a job template entry of type CFArrayRef.
OSStatus PMTemplateGetCFArrayConstraintValue ( PMTemplateRef pmTemplate, CFStringRef key, CFArrayRef *constraintValue );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, a poinrter to a Core Foundation array reference for the constraint values for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains the default value for a job template entry of type CFDataRef.
OSStatus PMTemplateGetCFDataDefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, CFDataRef *defaultValue );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to a Core Foundation data reference that specfies the default data for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains the default value for a job template entry of type CFTypeRef.
OSStatus PMTemplateGetCFDefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, CFTypeRef *defaultValue );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to a Core Foundation type reference that specifies the default data for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains the range of constraint values for a job template entry of type CFTypeRef.
OSStatus PMTemplateGetCFRangeConstraintValue ( PMTemplateRef pmTemplate, CFStringRef key, CFTypeRef *min, CFTypeRef *max );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to a Core Foundation type reference that specifies the minimum value to which the template entry specified by the key parameter is constrained.
On return, points to a Core Foundation type reference that specifies the maximum value to which the template entry specified by the key parameter is constrained.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains the constraint type for a job template entry.
OSStatus PMTemplateGetConstraintType ( PMTemplateRef pmTemplate, CFStringRef key, PMConstraintType *constraintType );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data whose constraint type you want to retrieve from the template.
On return, points to the constraint type for the data specified by the key parameter. See “Constraint Types” for a list of the constraint types that can be returned.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains the default value for a job template entry of type double.
OSStatus PMTemplateGetDoubleDefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, double *defaultValue );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to the default double value for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains constraint values for a job template entry of type double.
OSStatus PMTemplateGetDoubleListConstraintValue ( PMTemplateRef pmTemplate, CFStringRef key, int *listSize, double *doubleList );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
A pointer to the number of items in the array specified by the parameter doubleList.
On return, points to an array of double values to which the template entry specified by the key parameter is constrained.
A result code. See “Ticket Services Result Codes.”
You need to call the function PMTemplateGetDoubleListConstraintValue twice. First, call the function to get the number of items in the array specified by the parameter doubleList. You should call the function again after you allocate space for the array.
PMTemplate.h
Obtains the default range of values for a job template entry of type double.
OSStatus PMTemplateGetDoubleRangeConstraintValue ( PMTemplateRef pmTemplate, CFStringRef key, double *min, double *max );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to the minimum value to which the template entry specified by the key parameter is constrained.
On return, points to the maximum value to which the template entry specified by the key parameter is constrained.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains the default range values for a job template entry of type double.
OSStatus PMTemplateGetDoubleRangeDefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, double *min, double *max );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to the minimum value to which the range is constrained for the template entry specified by the key parameter.
On return, points to the maximum value to which the range is constrained for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains a range for the minimum and maximum constraint values for a job template entry that is a range of type double.
OSStatus PMTemplateGetDoubleRangesConstraintValue ( PMTemplateRef pmTemplate, CFStringRef key, double *minForMin, double *maxForMin, double *minForMax, double *maxForMax );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to the minimum value to which the minimum of the range is constrained for the template entry specified by the key parameter.
On return, points to the maximum value to which the minimum of the range is constrained for the template entry specified by the key parameter.
On return, points to the minimum value to which the maximum of the range is constrained for the template entry specified by the key parameter.
On return, points to the maximum value to which the maximum of the range is constrained for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains the constraint value for a job template entry that of type PMTicketRef.
OSStatus PMTemplateGetListTicketConstraintValue ( PMTemplateRef pmTemplate, CFStringRef key, PMTicketRef *listTicket );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to a reference to the list ticket to which the template entry specified by the key parameter is constrained.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains the default value for a job template entry of type PMRect.
OSStatus PMTemplateGetPMRectDefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, PMRect *defaultValue );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to the default PMRect data for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains constraint values for a job template entry of type PMRect.
OSStatus PMTemplateGetPMRectListConstraintValue ( PMTemplateRef pmTemplate, CFStringRef key, int *listSize, PMRect *rectList );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
A pointer to the number of items in the array specified by the parameter rectList.
On return, points to an array of PMRect values to which the template entry specified by the key parameter is constrained.
A result code. See “Ticket Services Result Codes.”
You need to call the function PMTemplateGetPMRectListConstraintValue twice. First, call the function to get the number of items in the array specified by the parameter rectList. You should call the function again after you allocate space for the array.
PMTemplate.h
Obtains the default value for a job template entry of type PMTicket.
OSStatus PMTemplateGetPMTicketDefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, PMTicketRef *defaultValue );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to a reference to the default ticket for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains the default value for a job template entry of type SInt32.
OSStatus PMTemplateGetSInt32DefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, SInt32 *defaultValue );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to the default value for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains constraint values for a job template entry of type SInt32.
OSStatus PMTemplateGetSInt32ListConstraintValue ( PMTemplateRef pmTemplate, CFStringRef key, int *listSize, SInt32 *sint32List );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to the number of items in the array specified by the parameter sint32List.
On return, points to an array of SInt32 values to which the template entry specified by the key parameter is constrained.
A result code. See “Ticket Services Result Codes.”
You need to call the function PMTemplateGetSInt32ListConstraintValue twice. First, call the function to get the number of items in the array specified by the parameter sint32List. You should call the function again after you allocate space for the array.
PMTemplate.h
Obtains the default range of values for a job template entry of type SInt32.
OSStatus PMTemplateGetSInt32RangeConstraintValue ( PMTemplateRef pmTemplate, CFStringRef key, SInt32 *min, SInt32 *max );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to the minimum value to which the template entry specified by the key parameter is constrained.
On return, points to the maximum value to which the template entry specified by the key parameter is constrained.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains the default range values for a job template entry of type SInt32.
OSStatus PMTemplateGetSInt32RangeDefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, SInt32 *min, SInt32 *max );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to the minimum value to which the range is constrained for the template entry specified by the key parameter.
On return, points to the maximum value to which the range is constrained for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains a range of constraint values for a job template entry that is a range of type SInt32.
OSStatus PMTemplateGetSInt32RangesConstraintValue ( PMTemplateRef pmTemplate, CFStringRef key, SInt32 *minForMin, SInt32 *maxForMin, SInt32 *minForMax, SInt32 *maxForMax );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to the minimum value to which the minimum of the range is constrained for the template entry specified by the key parameter.
On return, points to the maximum value to which the minimum of the range is constrained for the template entry specified by the key parameter.
On return, points to the minimum value to which the maximum of the range is constrained for the template entry specified by the key parameter.
On return, points to the maximum value to which the maximum of the range is constrained for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains the data type of a job template entry.
OSStatus PMTemplateGetValueType ( PMTemplateRef pmTemplate, CFStringRef key, PMValueType *valueType );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to the value type for the template entry specified by the key parameter. See “PMTicketItemType” for a list of values that can be returned.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Checks to see if a job template is locked.
OSStatus PMTemplateIsLocked ( PMTemplateRef srcTemplate, Boolean *locked );
A reference to a job template created by calling the function PMTemplateCreate.
On return, points to true if the job template is locked and false if the template is not locked.
A result code. See “Ticket Services Result Codes.”
A job template cannot be modified unless it is unlocked.
PMTemplate.h
Restores a job template that was previously converted to XML.
OSStatus PMTemplateLoadFromXML ( CFDataRef srcData, PMTemplateRef *destTemplate );
A reference to CFData that represents job template data. You obtain a CFDataRef by calling the function PMTemplateCreateXML.
A reference to a job template created by calling the function PMTemplateCreate. On return, the job template contains the entries specified by the XML data.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Creates a new entry in a job template.
OSStatus PMTemplateMakeEntry ( PMTemplateRef pmTemplate, CFStringRef key, PMValueType valueType, PMConstraintType constraintType );
A reference to a job template created by calling the function PMTemplateCreate.
A reference to a CFString object that uniquely identifies the entry. You use the key to set and obtain the data for this entry.
The data type of the value associated with the entry. See “PMValueType” for a list of constants you can use to specify the data type.
The type of constraint you want applied to the data associated with the entry. See “Constraint Types” for a list of constants you can use to specify the constraint type.
A result code. See “Ticket Services Result Codes.”
After you call the function PMTemplateMakeEntry, you should set default and constraint values for the entry by calling the appropriate PMTemplateSet functions for the data type of the entry.
PMTemplate.h
Creates a new entry in a job template and sets the default and constraint values for the entry.
OSStatus PMTemplateMakeFullEntry ( PMTemplateRef pmTemplate, CFStringRef key, PMValueType valueType, PMConstraintType constraintType, CFTypeRef defaultValue, CFTypeRef constraintValue );
A reference to a job template created by calling the function PMTemplateCreate.
A reference to a CFString object that uniquely identifies the entry. You use the key to set and obtain the data for this entry.
The data type of the value associated with the entry. See “PMValueType” for a list of constants you can use to specify the data type.
The type of constraint you want applied to the data associated with the entry. See “Constraint Types” for a list of constants you can use to specify the constraint type.
A reference to the default value for this entry.
A reference to the values used to constrain the data associated with this entry.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Merges the entries from one job template with entries from another job template.
OSStatus PMTemplateMergeTemplates ( PMTemplateRef sourceTemplate, PMTemplateRef destTemplate );
A reference to the job template whose entries you want to merge with the destination template.
A reference to the job template into which you want to merge entries from the source template. Any entry in the destination template that has the same key as an entry in the source template is overwritten by the data from the source template.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Removes an entry from a job template.
OSStatus PMTemplateRemoveEntry ( PMTemplateRef pmTemplate, CFStringRef key );
A reference to a job template created by calling the function PMTemplateCreate.
A reference to a CFString object that uniquely identifies the entry you want to remove.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Sets the default value for a job template entry of type Boolean.
OSStatus PMTemplateSetBooleanDefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, Boolean defaultValue );
A reference to a job template created by calling the function PMTemplateCreate.
A reference to a CFString object that uniquely identifies the data whose default value you want to set.
A Boolean value that specifies the default value for template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Sets the constraint values for a job template entry of type CFArray.
OSStatus PMTemplateSetCFArrayConstraintValue ( PMTemplateRef pmTemplate, CFStringRef key, CFArrayRef constraintValue );
A reference to a job template created by calling the function PMTemplateCreate.
A reference to a CFString object that uniquely identifies the data whose constraint values you want to set.
A reference to a Core Foundation array that contains the values to which the template entry specified by the key parameter is constrained.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Sets the default value for a job template entry of type CFDataRef.
OSStatus PMTemplateSetCFDataDefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, CFDataRef defaultValue );
A reference to a job template created by calling the function PMTemplateCreate.
A reference to a CFString object that uniquely identifies the data whose default value you want to set.
A reference to the default data for template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Sets the default value for a job template entry of type CFTypeRef.
OSStatus PMTemplateSetCFDefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, CFTypeRef defaultValue );
A reference to a job template created by calling the function PMTemplateCreate.
A reference to a CFString object that uniquely identifies the data whose default value you want to set.
A reference to the default data for template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Sets a range of constraint values for a job template entry of type CFTypeRef.
OSStatus PMTemplateSetCFRangeConstraint ( PMTemplateRef pmTemplate, CFStringRef key, CFTypeRef min, CFTypeRef max );
A reference to a job template created by calling the function PMTemplateCreate.
A reference to a CFString object that uniquely identifies the data whose range of constraint values you want to set.
A reference to the minimum value to which the template entry specified by the key parameter is constrained.
A reference to the maximum value to which the template entry specified by the key parameter is constrained.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Sets the default value for a job template entry of type double.
OSStatus PMTemplateSetDoubleDefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, double defaultValue );
A reference to a job template created by calling the function PMTemplateCreate.
A reference to a CFString object that uniquely identifies the data whose default value you want to set.
A double value that specifies the default value for template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Sets constraint values for a job template entry of type double.
OSStatus PMTemplateSetDoubleListConstraint ( PMTemplateRef pmTemplate, CFStringRef key, int listSize, double *doubleList );
A reference to a job template created by calling the function PMTemplateCreate.
A reference to a CFString object that uniquely identifies the data whose constraint values you want to set.
The size of the array specified by the parameter doubleList.
A pointer to an array of double values to which the template entry specified by the key parameter is constrained.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Sets a range of constraint values for a job template entry of type double.
OSStatus PMTemplateSetDoubleRangeConstraint ( PMTemplateRef pmTemplate, CFStringRef key, double min, double max );
A reference to a job template created by calling the function PMTemplateCreate.
A reference to a CFString object that uniquely identifies the data whose constraint values you want to set.
A double value that specifies the minimum value to which the template entry specified by the key parameter is constrained.
A double value that specifies the maximum value to which the template entry specified by the key parameter is constrained.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Sets the default range of values for a job template entry of type double.
OSStatus PMTemplateSetDoubleRangeDefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, double min, double max );
A reference to a job template created by calling the function PMTemplateCreate.
A reference to a CFString object that uniquely identifies the data whose default values you want to set.
A double value that specifies the default minimum value for the template entry specified by the key parameter.
A double value that specifies the default maximum value for template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Sets a range of constraint values for a job template entry that is a range of type double.
OSStatus PMTemplateSetDoubleRangesConstraint ( PMTemplateRef pmTemplate, CFStringRef key, double minForMin, double maxForMin, double minForMax, double maxForMax );
A reference to a job template created by calling the function PMTemplateCreate.
A reference to a CFString object that uniquely identifies the data whose range of constraint values you want to set.
A double value that specifies the minimum value to which the minimum of the range is constrained for the template entry specified by the key parameter.
A double value that specifies the maximum value to which the minimum of the range is constrained for the template entry specified by the key parameter.
A double value that specifies the minimum value to which the maximum of the range is constrained for the template entry specified by the key parameter.
A double value that specifies the maximum value to which the maximum of the range is constrained for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Sets the default value for a job template entry of type PMRect.
OSStatus PMTemplateSetPMRectDefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, PMRect *defaultValue );
A reference to a job template created by calling the function PMTemplateCreate.
A reference to a CFString object that uniquely identifies the data whose default value you want to set.
A pointer to a PMRect that specifies the default rectangle for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Sets constraint values for a job template entry of type PMRect.
OSStatus PMTemplateSetPMRectListConstraint ( PMTemplateRef pmTemplate, CFStringRef key, int listSize, PMRect *rectList );
A reference to a job template created by calling the function PMTemplateCreate.
A reference to a CFString object that uniquely identifies the data whose constraint values you want to set.
The size of the array specified by the parameter rectList.
A pointer to an array of PMRect values to which the template entry specified by the key parameter is constrained.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Sets the default value for a job template entry of type PMTicketRef.
OSStatus PMTemplateSetPMTicketDefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, PMTicketRef defaultValue );
A reference to a job template created by calling the function PMTemplateCreate.
A reference to a CFString object that uniquely identifies the data whose default value you want to set.
A reference to a ticket that specifies the default ticket for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Sets constraint values for a job template entry of type PMTicketRef.
OSStatus PMTemplateSetPMTicketListConstraint ( PMTemplateRef pmTemplate, CFStringRef key, PMTicketRef listTicket );
A reference to a job template created by calling the function PMTemplateCreate.
A reference to a CFString object that uniquely identifies the data whose constraint values you want to set.
A reference to a ticket that specifies the default list ticket for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Sets the default value for a job template entry of type SInt32.
OSStatus PMTemplateSetSInt32DefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, SInt32 defaultValue );
A reference to a job template created by calling the function PMTemplateCreate.
A reference to a CFString object that uniquely identifies the data whose default value you want to set.
An SInt32 value that specifies the default value for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Sets constraint values for a job template entry of type SInt32.
OSStatus PMTemplateSetSInt32ListConstraint ( PMTemplateRef pmTemplate, CFStringRef key, int listSize, SInt32 *sint32List );
A reference to a job template created by calling the function PMTemplateCreate.
A reference to a CFString object that uniquely identifies the data whose constraint values you want to set.
The size of the array specified by the parameter sint32List.
A pointer to an array of SInt32 values to which the template entry specified by the key parameter is constrained.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Sets a range of constraint values for a job template entry of type SInt32.
OSStatus PMTemplateSetSInt32RangeConstraint ( PMTemplateRef pmTemplate, CFStringRef key, SInt32 min, SInt32 max );
A reference to a job template created by calling the function PMTemplateCreate.
A reference to a CFString object that uniquely identifies the data whose constraint values you want to set.
An SInt32 value that specifies the minimum value to which the template entry specified by the key parameter is constrained.
An SInt32 value that specifies the maximum value to which the template entry specified by the key parameter is constrained.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Sets the default range of values for a job template entry of type SInt32.
OSStatus PMTemplateSetSInt32RangeDefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, SInt32 min, SInt32 max );
A reference to a job template created by calling the function PMTemplateCreate.
A reference to a CFString object that uniquely identifies the data whose default values you want to set.
An SInt32 value that specifies the default minimum value for the template entry specified by the key parameter.
An SInt32 value that specifies the default maximum value for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Sets a range of constraint values for a job template entry that is a range of type SInt32.
OSStatus PMTemplateSetSInt32RangesConstraint ( PMTemplateRef pmTemplate, CFStringRef key, SInt32 minForMin, SInt32 maxForMin, SInt32 minForMax, SInt32 maxForMax );
A reference to a job template created by calling the function PMTemplateCreate.
A reference to a CFString object that uniquely identifies the data whose range of constraint values you want to set.
An SInt32 value that specifies the minimum value to which the minimum of the range is constrained for the template entry specified by the key parameter.
An SInt32 value that specifies the maximum value to which the minimum of the range is constrained for the template entry specified by the key parameter.
An SInt32 value that specifies the minimum value to which the maximum of the range is constrained for the template entry specified by the key parameter.
An SInt32 value that specifies the maximum value to which the maximum of the range is constrained for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Validates an item in a job template.
OSStatus PMTemplateValidateItem ( PMTemplateRef pmTemplate, CFStringRef key, CFTypeRef item, Boolean *validationResults );
A reference to a job template created by calling the function PMTemplateCreate.
A reference to a CFString object that uniquely identifies the job template entry you want to validate.
A reference to the data you want to validate.
On return, points to true is the item is validated and false if it is not validated.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Checks whether a ticket appears to be valid.
OSStatus PMTicketConfirmTicket ( PMTicketRef ticket );
A reference to a ticket created by calling the function PMTicketCreate.
A result code. Returns noErr if the ticket appears to be valid. See “Ticket Services Result Codes.”
PMTicket.h
Checks whether an item exists in a ticket.
Boolean PMTicketContainsItem ( PMTicketRef ticket, UInt32 nodeIndex1, UInt32 nodeIndex2, CFStringRef key );
A reference to a ticket created by calling the function PMTicketCreate.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
A reference to a CFString object that uniquely identifies the ticket item you want to check.
Returns true if the item exists.
PMTicket.h
Checks whether a ticket is contained in another ticket.
OSStatus PMTicketContainsTicket ( PMTicketRef ticket, CFStringRef requestedType, UInt32 index, Boolean *exists );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that specfies the ticket type of the ticket for which you want to check. See “Ticket Type Strings” for a list of constants you can pass.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
On return, points to true if the ticket contains a subticket of the ticket type specified by the requestedType parameter.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Copies a ticket.
OSStatus PMTicketCopy ( CFAllocatorRef allocator, PMTicketRef sourceTicket, PMTicketRef *destinationTicket );
A reference to the allocator object to be used for allocating memory. Pass a reference to a valid allocator or kCFAllocatorDefault to request the default allocator.
A reference to a ticket created by calling the function PMTicketCreate. This is the ticket you want to copy.
A pointer to a ticket reference. On return, points to a copy of the source ticket.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Copies an item from one ticket to another ticket.
OSStatus PMTicketCopyItem ( PMTicketRef sourceTicket, PMTicketRef destTicket, CFStringRef clientID, CFStringRef key, Boolean locked );
A reference to a ticket created by calling the function PMTicketCreate. This is the ticket from which you want to copy an item.
A reference to a ticket created by calling the function PMTicketCreate. This is the ticket to which the item is copied.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to copy.
A Boolean value. Pass true to lock the copied item or false to set the item’s lock state to unlock. Locking the item prevents any subsequent modification of this item.
A result code. See “Ticket Services Result Codes.”
If an item must be copied from one ticket to another, call the function PMTicketCopyItem to make the simple transfer. This updates the modification date and client ID for the item. The locked field determines if subsequent updates can be made.
PMTicket.h
Creates a new ticket.
OSStatus PMTicketCreate ( CFAllocatorRef allocator, CFStringRef ticketType, PMTicketRef *newTicket );
A reference to the allocator object to be used for allocating memory. Pass a reference to a valid allocator or kCFAllocatorDefault to request the default allocator.
A reference to a CFString object that specfies the ticket type of the ticket you want to create. See “Ticket Type Strings” for a list of constants you can pass.
On return, a reference to a ticket.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Retrieves a template from a ticket.
OSStatus PMTicketCreateTemplate ( PMTicketRef ticket, UInt32 nodeIndex1, UInt32 nodeIndex2, CFStringRef key, PMTemplateRef *item );
A reference to a ticket created by calling the function PMTicketCreate.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
A reference to a CFString object that uniquely identifies the template you want to retrieve.
On return, points to the template reference specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
The function PMTicketCreateTemplate retrieves the template data associated with the specified key. The template is stored in the ticket as flattened data. The function creates a template object from the flattened data.
PMTicket.h
Makes an item in a ticket unavailable.
OSStatus PMTicketDeleteItem ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to make unavailable.
A result code. See “Ticket Services Result Codes.”
After an item is deleted by calling the function PMTicketDeleteItem, the result code kPMInvalidItem is returned when anyone tries to access the item. The function PMTicketDeleteItem actually makes the item unavailable rather than deleting the item. The function adds information to the item's dictionary to record the history of the item and to indicate the item is unavailable. You should call the function PMTicketReleaseItem if you want to completely remove the item from the ticket.
PMTicket.h
Adds items defined in an array of ticket item structures to a ticket.
OSStatus PMTicketFillFromArray ( PMTicketRef ticket, CFStringRef clientID, const PMTicketItemStruct *items, UInt32 itemCount );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A pointer to an array of ticket item structures.
The number of items in the items array.
A result code. If the result code is anything other than noErr, it’s possible that not all of the items were added successfully. See “Ticket Services Result Codes.”
PMTicket.h
Obtains the allocator object used for allocating memory for a ticket.
OSStatus PMTicketGetAllocator ( PMTicketRef ticket, CFAllocatorRef *allocator );
A reference to a ticket created by calling the function PMTicketCreate.
On return, a reference to the CFAllocator object associated with the ticket.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Obtains the version of the application programming interface (API) used to created a ticket.
OSStatus PMTicketGetAPIVersion ( PMTicketRef ticket, CFStringRef *apiVersion );
A reference to a ticket created by calling the function PMTicketCreate.
On return, a reference to a CFString object that specifies the version of the API used to create the ticket.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Obtains data for a ticket item of type Boolean.
OSStatus PMTicketGetBoolean ( PMTicketRef ticket, UInt32 nodeIndex1, UInt32 nodeIndex2, CFStringRef key, Boolean *value );
A reference to a ticket created by calling the function PMTicketCreate.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
A reference to a CFString object that uniquely identifies the ticket item whose value you want to obtain. See the Base Services documentation for a description of the CFStringRef data type.
On return, points to the Boolean value for the item specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Obtains data for a ticket item that’s an array of UInt8 values.
OSStatus PMTicketGetBytes ( PMTicketRef ticket, UInt32 nodeIndex1, UInt32 nodeIndex2, CFStringRef key, UInt8 *data, UInt32 *size );
A reference to a ticket created by calling the function PMTicketCreate.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
A reference to a CFString object that uniquely identifies the ticket item whose value you want to obtain.
On return, points to an array of data of type UInt8 for the item specified by the key parameter.
On input, pass the size of the buffer pointed to by the data parameter. On return, points to the number of bytes in the array.
A result code. See “Ticket Services Result Codes.”
If you don’t know the size of the data buffer, you need to call the function PMTicketGetBytes twice. First, call the function to get the number of items in the array specified by the parameter data. You should call the function again after you allocate space for the array.
PMTicket.h
Obtains data for a ticket item that’s a Core Foundation array.
OSStatus PMTicketGetCFArray ( PMTicketRef ticket, UInt32 nodeIndex1, UInt32 nodeIndex2, CFStringRef key, CFArrayRef *item );
A reference to a ticket created by calling the function PMTicketCreate.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
A reference to a CFString object that uniquely identifies the ticket item whose value you want to obtain.
On return, points to a Core Foundation array reference for the item specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Obtains data for a ticket item that’s an array of CFBoolean values.
OSStatus PMTicketGetCFBoolean ( PMTicketRef ticket, UInt32 nodeIndex1, UInt32 nodeIndex2, CFStringRef key, CFBooleanRef *item );
A reference to a ticket created by calling the function PMTicketCreate.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
A reference to a CFString object that uniquely identifies the ticket item whose value you want to obtain.
On return, points to a Core Foundation Boolean reference for the item specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Obtains data for a ticket item of type CFData.
OSStatus PMTicketGetCFData ( PMTicketRef ticket, UInt32 nodeIndex1, UInt32 nodeIndex2, CFStringRef key, CFDataRef *item );
A reference to a ticket created by calling the function PMTicketCreate.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
A reference to a CFString object that uniquely identifies the ticket item whose value you want to obtain.
On return, points to a Core Foundation data reference for the item specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Obtains data for a ticket item of type CFDate.
OSStatus PMTicketGetCFDate ( PMTicketRef ticket, UInt32 nodeIndex1, UInt32 nodeIndex2, CFStringRef key, CFDateRef *item );
A reference to a ticket created by calling the function PMTicketCreate.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
A reference to a CFString object that uniquely identifies the ticket item whose value you want to obtain.
On return, points to a Core Foundation date reference for the item specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Obtains data for a ticket item of type CFDictionary.
OSStatus PMTicketGetCFDictionary ( PMTicketRef ticket, UInt32 nodeIndex1, UInt32 nodeIndex2, CFStringRef key, CFDictionaryRef *item );
A reference to a ticket created by calling the function PMTicketCreate.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
A reference to a CFString object that uniquely identifies the ticket item whose value you want to obtain.
On return, points to a Core Foundation dictionary reference for the item specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Obtains data for a ticket item of type CFNumber.
OSStatus PMTicketGetCFNumber ( PMTicketRef ticket, UInt32 nodeIndex1, UInt32 nodeIndex2, CFStringRef key, CFNumberRef *item );
A reference to a ticket created by calling the function PMTicketCreate.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
A reference to a CFString object that uniquely identifies the ticket item whose value you want to obtain.
On return, points to a Core Foundation number reference for the item specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Obtains data for a ticket item of type CFString.
OSStatus PMTicketGetCFString ( PMTicketRef ticket, UInt32 nodeIndex1, UInt32 nodeIndex2, CFStringRef key, CFStringRef *item );
A reference to a ticket created by calling the function PMTicketCreate.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
A reference to a CFString object that uniquely identifies the ticket item whose value you want to obtain.
On return, points to a Core Foundation string reference for the item specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Obtains data for a ticket item of that’s a C-style string.
OSStatus PMTicketGetCString ( PMTicketRef ticket, UInt32 nodeIndex1, UInt32 nodeIndex2, CFStringRef key, UInt32 bufferSize, CFStringEncoding encoding, char *value );
A reference to a ticket created by calling the function PMTicketCreate.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
A reference to a CFString object that uniquely identifies the ticket item whose value you want to obtain.
The size of the string specified by the value parameter.
The encoding of the string. You should supply one of the CFStringBuiltInEncodings constants defined in Core Foundation String Services.
On return, points to the C-style string for the item specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Obtains data for a ticket item of type double.
OSStatus PMTicketGetDouble ( PMTicketRef ticket, UInt32 nodeIndex1, UInt32 nodeIndex2, CFStringRef key, double *value );
A reference to a ticket created by calling the function PMTicketCreate.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
A reference to a CFString object that uniquely identifies the ticket item whose value you want to obtain.
On return, points to the double value for the item specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Obtains a ticket’s ticket type (job, paper, converter, and so on).
OSStatus PMTicketGetEnumType ( PMTicketRef ticket, PMTicketType *ticketType );
A reference to a ticket created by calling the function PMTicketCreate.
On return, points to a value of type PMTicketType that specifies a ticket’s type.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Obtains an indexed resolution for a ticket item that’s an array of type PMResolution.
OSStatus PMTicketGetIndexPMResolution ( PMTicketRef ticket, UInt32 nodeIndex1, UInt32 nodeIndex2, CFStringRef key, UInt32 index, PMResolution *res );
A reference to a ticket created by calling the function PMTicketCreate.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
A reference to a CFString object that uniquely identifies the ticket item whose value you want to obtain.
The index of the resolution you want to obtain.
On return, points to the resolution (PMResolution) specified by the index parameter.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Obtains data for a ticket item of type CFType.
OSStatus PMTicketGetItem ( PMTicketRef ticket, UInt32 nodeIndex1, UInt32 nodeIndex2, CFStringRef key, CFTypeRef *item );
A reference to a ticket created by calling the function PMTicketCreate.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
A reference to a CFString object that uniquely identifies the ticket item whose value you want to obtain.
On return, point to a Core Foundation type reference for the item specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Obtains the lock state of a ticket.
OSStatus PMTicketGetLockedState ( PMTicketRef ticket, Boolean *lockedState );
A reference to a ticket created by calling the function PMTicketCreate.
On return, points to true if the ticket is locked and false if the ticket is unlocked.
A result code. See “Ticket Services Result Codes.”
Tickets can be locked by the printing system. If you try to modify a locked ticket the result code kPMTicketLocked is returned. You can call the function PMTicketGetLockedState before you call any other function that modifies the ticket.
PMTicketDeprecated.h
Obtains data for a item added with the function PMTicketSetMetaItem.
Not recommended.
OSStatus PMTicketGetMetaItem ( PMTicketRef ticket, CFStringRef key, CFTypeRef *item );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies the ticket item whose value you want to obtain.
On return, a reference to the data for the item specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTicketDeprecated.h
Obtains data for a ticket item of type PMRect.
OSStatus PMTicketGetPMRect ( PMTicketRef ticket, UInt32 nodeIndex1, UInt32 nodeIndex2, CFStringRef key, PMRect *value );
A reference to a ticket created by calling the function PMTicketCreate.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
A reference to a CFString object that uniquely identifies the ticket item whose value you want to obtain.
On return, points to the PMRect data for the item specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Obtains data for a ticket item of type PMResolution.
OSStatus PMTicketGetPMResolution ( PMTicketRef ticket, UInt32 nodeIndex1, UInt32 nodeIndex2, CFStringRef key, PMResolution *res );
A reference to a ticket created by calling the function PMTicketCreate.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
A reference to a CFString object that uniquely identifies the ticket item whose value you want to obtain.
On return, points to the PMResolution data for the item specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Obtains data for a ticket item that’s a PostScript printer description (PPD) dictionary.
OSStatus PMTicketGetPPDDict ( PMTicketRef ticket, UInt32 nodeIndex1, UInt32 nodeIndex2, CFMutableDictionaryRef *dict );
A reference to a ticket created by calling the function PMTicketCreate.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
On return, points to a reference to the PostScript printer description (PPD) dictionary associated with the specified ticket. The dictionary holds pairs of PPD main and option keywords. The main keywords are specified as keys in the dictionary and the options keywords specify the value.
A result code. See “Ticket Services Result Codes.”
PMTicketDeprecated.h
Obtains data for a ticket item that’s a Pascal-style string.
OSStatus PMTicketGetPString ( PMTicketRef ticket, UInt32 nodeIndex1, UInt32 nodeIndex2, CFStringRef key, UInt32 bufferSize, CFStringEncoding encoding, StringPtr value );
A reference to a ticket created by calling the function PMTicketCreate.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
A reference to a CFString object that uniquely identifies the ticket item whose value you want to obtain.
The size of the value parameter.
The encoding of the string. You should supply one of the CFStringBuiltInEncodings constants defined in Core Foundation String Services.
On return, points to the Pascal-style string value for the ticket item specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Obtains the retention count for a ticket.
OSStatus PMTicketGetRetainCount ( PMTicketRef ticket, CFIndex *retainCount );
A reference to a ticket created by calling the function PMTicketCreate.
On return, points to the retention count for the ticket.
A result code. See “Ticket Services Result Codes.”
The function PMTicketGetRetainCount behaves similarly to the Core Foundation function CFGetRetainCount.
PMTicket.h
Obtains data for a ticket item of type SInt32.
OSStatus PMTicketGetSInt32 ( PMTicketRef ticket, UInt32 nodeIndex1, UInt32 nodeIndex2, CFStringRef key, SInt32 *value );
A reference to a ticket created by calling the function PMTicketCreate.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
A reference to a CFString object that uniquely identifies the ticket item whose value you want to obtain.
On return, points to the SInt32 value for the ticket item specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Obtains a subticket from a ticket.
OSStatus PMTicketGetTicket ( PMTicketRef ticket, CFStringRef requestedType, UInt32 index, PMTicketRef *retrievedTicket );
A reference to a ticket created by calling the function PMTicketCreate.
A string that specifies the ticket type of the ticket you want to obtain. See “Ticket Type Strings” for a list of strings you can pass.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
On return, points to the ticket reference whose type you specified.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Obtains a value that specifies the ticket’s type.
OSStatus PMTicketGetType ( PMTicketRef ticket, CFStringRef *ticketType );
A reference to a ticket created by calling the function PMTicketCreate.
On return, points to a string value that specifies the ticket’s type. See “PMTicketType” for a list of constants that can be returned
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Obtains an item of type UInt32 from a ticket.
OSStatus PMTicketGetUInt32 ( PMTicketRef ticket, UInt32 nodeIndex1, UInt32 nodeIndex2, CFStringRef key, UInt32 *value );
A reference to a ticket created by calling the function PMTicketCreate.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
A reference to a CFString object that uniquely identifies the ticket item whose value you want to obtain.
On return, points to UInt32 value for the ticket item specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Checks to see if an item in a ticket is locked.
OSStatus PMTicketIsItemLocked ( PMTicketRef ticket, CFStringRef key, Boolean *locked );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies the ticket item you want to check.
On return, points to true if the item is locked or false if the item is not locked.
A result code. See “Ticket Services Result Codes.”
The function PMTicketIsItemLocked checks only those items stored in the top-level of the ticket. It does not check items in subtickets.
PMTicketDeprecated.h
Locks an item in a ticket.
OSStatus PMTicketLockItem ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to lock.
A result code. See “Ticket Services Result Codes.”
The function PMTicketLockItem locks only those items stored in the top-level of the ticket. It does not lock items in sub-tickets.
PMTicketDeprecated.h
Restores a ticket previously converted to XML and saved as a file.
OSStatus PMTicketReadXMLFromFile ( CFAllocatorRef allocator, const char *path, PMTicketRef *ticket, CFStringRef *errorString );
A reference to the allocator object to be used for allocating memory. Pass a reference to a valid allocator or kCFAllocatorDefault to request the default allocator.
A string that specifies the path name of the XML file you want to read.
A reference to a ticket created by calling the function PMTicketCreate. On return, the ticket contains the entries specified by the XML file.
On return, a reference to a CFString object that contains an error message if an error occurred.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Decrements the retention count of a ticket object.
OSStatus PMTicketRelease ( PMTicketRef ticket );
A reference to a ticket created by calling the function PMTicketCreate.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Decrements the retention count of a ticket and sets the ticket reference to NULL.
OSStatus PMTicketReleaseAndClear ( PMTicketRef *ticket );
A reference to a ticket created by calling the function PMTicketCreate.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Removes an item from a ticket.
OSStatus PMTicketReleaseItem ( PMTicketRef ticket, CFStringRef key );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies the ticket item you want to remove.
A result code. See “Ticket Services Result Codes.”
An item can only be released if it is not locked. The function PMTicketReleaseItem works differently than the function PMTicketDeleteItem. The function PMTicketDeleteItem makes the item unavailable, but keeps information about the item in the ticket. The function PMTicketReleaseItem removes the item from the ticket.
PMTicket.h
Removes a subticket from a ticket.
OSStatus PMTicketRemoveTicket ( PMTicketRef ticket, CFStringRef typeToRemove, UInt32 index );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that specfies the ticket type of the ticket you want to create. See “Ticket Type Strings” for a list of constants you can pass.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Increments the retention count of a ticket object.
OSStatus PMTicketRetain ( PMTicketRef ticket );
A reference to a ticket created by calling the function PMTicketCreate.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes an item of type Boolean to a ticket.
OSStatus PMTicketSetBoolean ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key, Boolean value, Boolean locked );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to set.
The Boolean value to which you want to set the ticket item entry specified by the key parameter.
Pass true to set the item to locked; false to set it to unlocked.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes an item that’s an array of type UInt8 to a ticket.
OSStatus PMTicketSetBytes ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key, const UInt8 *data, UInt32 size, Boolean locked );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to set.
A pointer to the data to which you want to set the ticket item entry specified by the key parameter.
The size of the data, in bytes.
Pass true to set the item to locked; false to set it to unlocked.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes an item of type CFArray to a ticket.
OSStatus PMTicketSetCFArray ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key, CFArrayRef item, Boolean locked );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to set.
A reference to the Core Foundation array to which you want to set the ticket item entry specified by the key parameter.
Pass true to set the item to locked; false to set it to unlocked.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes an item of type CFBoolean to a ticket.
OSStatus PMTicketSetCFBoolean ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key, CFBooleanRef item, Boolean locked );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to set.
A reference to the CFBoolean value to which you want to set the ticket item entry specified by the key parameter.
Pass true to set the item to locked; false to set it to unlocked.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes an item of type CFData to a ticket.
OSStatus PMTicketSetCFData ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key, CFDataRef item, Boolean locked );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to set.
A reference to the CFData to which you want to set the ticket item entry specified by the key parameter.
Pass true to set the item to locked; false to set it to unlocked.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes an item of type CFDate to a ticket.
OSStatus PMTicketSetCFDate ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key, CFDateRef item, Boolean locked );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to set.
A reference to the CFDate value to which you want to set the ticket item entry specified by the key parameter.
Pass true to set the item to locked; false to set it to unlocked.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes an item of type CFDictionary to a ticket.
OSStatus PMTicketSetCFDictionary ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key, CFDictionaryRef item, Boolean locked );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to set.
A reference to the Core Foundation dictionary to which you want to set the ticket item entry specified by the key parameter.
Pass true to set the item to locked; false to set it to unlocked.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes an item of type CFNumber to a ticket.
OSStatus PMTicketSetCFNumber ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key, CFNumberRef item, Boolean locked );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to set.
A reference to the CFNumber value to which you want to set the ticket item entry specified by the key parameter.
Pass true to set the item to locked; false to set it to unlocked.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes an item of type CFString to a ticket.
OSStatus PMTicketSetCFString ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key, CFStringRef item, Boolean locked );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to set.
A reference to the CFString object to which you want to set the ticket item entry specified by the key parameter.
Pass true to set the item to locked; false to set it to unlocked.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes an item that’s a C-style string to a ticket.
OSStatus PMTicketSetCString ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key, const char *value, Boolean locked );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to set.
The C-style string to which you want to set the ticket item entry specified by the key parameter. The string must use UTF-8 encoding.
Pass true to set the item to locked; false to set it to unlocked.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes an item that’s an array of C-style strings to a ticket.
OSStatus PMTicketSetCStringArray ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key, const char **cStringArray, UInt32 count, Boolean locked );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to set.
The array of C-style strings to which you want to set the ticket item entry specified by the key parameter. The strings must use UTF-8 encoding.
The number of characters in the C-style string array.
Pass true to set the item to locked; false to set it to unlocked.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes an item of type double to a ticket.
OSStatus PMTicketSetDouble ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key, double value, Boolean locked );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to set.
The double value to which you want to set the ticket item entry specified by the key parameter.
Pass true to set the item to locked; false to set it to unlocked.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes an item that’s an array of values of type double to a ticket.
OSStatus PMTicketSetDoubleArray ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key, const double *array, UInt32 count, Boolean changeable );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to set.
A pointer to an array of double values to which you want to set the ticket item entry specified by the key parameter.
The number of values in the array specified by the doubleArray parameter.
Pass true to set the item to locked; false to set it to unlocked.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes an item of type CFType to a ticket.
OSStatus PMTicketSetItem ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key, CFTypeRef item, Boolean locked );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to set.
A reference to the generic Core Foundation data to which you want to set the ticket item entry specified by the key parameter.
Pass true to set the item to locked; false to set it to unlocked.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes an item that does not need to be stored in an XML-representation of a ticket.
Not recommended.
OSStatus PMTicketSetMetaItem ( PMTicketRef ticket, CFStringRef key, CFTypeRef item );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies the ticket item you want to set.
A reference to the generic Core Foundation data to which you want to set the ticket item entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
You can use the function PMTicketSetMetaItem to add an item to a ticket when you don’t want that item o be written to an XML-representation of the ticket. In other words, when you want to temporarily add an item to a ticket. Items added with this function cannot be locked.
PMTicketDeprecated.h
Writes an item of type PMRect to a ticket.
OSStatus PMTicketSetPMRect ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key, PMRect *value, Boolean locked );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to set.
A pointer to the PMRect value to which you want to set the ticket item entry specified by the key parameter. A PMRect data type is an array of four double values.
Pass true to set the item to locked; false to set it to unlocked.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes an item that’s an array of values of type PMRect to a ticket.
OSStatus PMTicketSetPMRectArray ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key, PMRect *pmRectArray, UInt32 count, Boolean locked );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to set.
A pointer to an array of PMRect values to which you want to set the ticket item entry specified by the key parameter. A PMRect data type is an array of four double values.
The number of values in the array specified by the pmRectArray parameter.
Pass true to set the item to locked; false to set it to unlocked.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes an item of type PMResolution to a ticket.
OSStatus PMTicketSetPMResolution ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key, PMResolution *value, Boolean locked );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to set.
A pointer to the PMResolution value to which you want to set the ticket item entry specified by the key parameter. A PMResolution data type is an array of two double values.
Pass true to set the item to locked; false to set it to unlocked.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes an item that’s an array of data of type PMResolution to a ticket.
OSStatus PMTicketSetPMResolutionArray ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key, PMResolution *pmResolutionArray, UInt32 count, Boolean locked );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to set.
A pointer to an array of the PMResolution values to which you want to set the ticket item entry specified by the key parameter. A PMResolution data type is an array of two double values.
The number of items in the array specified by the pmResolutionArray parameter.
Pass true to set the item to locked; false to set it to unlocked.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes an item that’s a Pascal-style string to a ticket.
OSStatus PMTicketSetPString ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key, ConstStringPtr value, Boolean locked );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to set.
A pointer to the Pascal-style string to which you want to set the ticket item entry specified by the key parameter. The string must use MacRoman encoding.
Pass true to set the item to locked; false to set it to unlocked.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes an item of type SInt32 to a ticket.
OSStatus PMTicketSetSInt32 ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key, SInt32 value, Boolean locked );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to set.
The SInt32 value to which you want to set the ticket item entry specified by the key parameter.
Pass true to set the item to locked; false to set it to unlocked.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes an item that’s an array of data of type SInt32 to a ticket.
OSStatus PMTicketSetSInt32Array ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key, const SInt32 *sInt32Array, UInt32 count, Boolean locked );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to set.
A pointer to an array of SInt32 values to which you want to set the ticket item entry specified by the key parameter.
The number of values in the array specified by the sInt32Array parameter.
Pass true to set the item to locked; false to set it to unlocked.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes an item that’s a job template to a ticket.
OSStatus PMTicketSetTemplate ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key, PMTemplateRef item, Boolean locked );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to set.
A reference to a job template created by calling the function PMTemplateCreate.
Pass true to set the item to locked; false to set it to unlocked.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes a subticket to a ticket.
OSStatus PMTicketSetTicket ( PMTicketRef ticket, PMTicketRef ticketToAdd, UInt32 index );
A reference to a ticket created by calling the function PMTicketCreate. This is the ticket to which you want to add a subticket. Any ticket can contain another ticket.
A reference to a ticket created by calling the function PMTicketCreate. This is the ticket you want to be a subticket.
Reserved for future use. Currently, you must pass the constant kPMTopLevel.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes an item of type UInt32 to a ticket.
OSStatus PMTicketSetUInt32 ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key, UInt32 value, Boolean locked );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to set.
The UInt32 value to which you want to set the ticket item entry specified by the key parameter.
Pass true to set the item to locked; false to set it to unlocked.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Writes an item that’s an array of data of type UInt32 to a ticket.
OSStatus PMTicketSetUInt32Array ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key, const UInt32 *uInt32Array, UInt32 count, Boolean locked );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to set.
A pointer to the array of UInt32 values to which you want to set the ticket item entry specified by the key parameter.
The number of values in the array specified by the uInt32Array parameter.
Pass true to set the item to locked; false to set it to unlocked.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Converts the data in a ticket to XML.
OSStatus PMTicketToXML ( PMTicketRef ticket, CFDataRef *anXMLTicket );
A reference to a ticket created by calling the function PMTicketCreate.
On return, points to a Core Foundation data reference that represents job template data. You are responsible for releasing the CFData reference.
A result code. See “Ticket Services Result Codes.”
If you want to write the XML data is to a file, use the function PMTicketWriteXMLToFile.
PMTicket.h
Unlocks an item in a ticket.
OSStatus PMTicketUnlockItem ( PMTicketRef ticket, CFStringRef clientID, CFStringRef key );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to a CFString object that uniquely identifies your application. The string should be in a format similar to a Java-style package name (think of it as a reverse URL), such as CFSTR("com.myvendorname.myprintingcode").
A reference to a CFString object that uniquely identifies the ticket item you want to unlock.
A result code. See “Ticket Services Result Codes.”
The function PMTicketUnlockItem unlocks only those items stored in the top-level of the ticket. It does not unlock items in subtickets.
PMTicketDeprecated.h
Validates a ticket against the constraint values specified in a job template.
OSStatus PMTicketValidate ( PMTicketRef ticket, PMTemplateRef verifyingTemplate, CFArrayRef *invalidItems );
A reference to a ticket created by calling the function PMTicketCreate.
A reference to the job template against which you want to validate the ticket.
On return, points to an array of invalid items, should there be any. If there are no invalid items, and the function returns noErr, then the value of invalidItems is undefined.
A result code. See “Ticket Services Result Codes.”
Only those items in the ticket that have corresponding entries in the job template are checked. In other words, a ticket item’s key must match a template item’s key for the ticket item to be validated.
PMTicket.h
Converts a ticket to XML and then writes it to a file stream.
OSStatus PMTicketWriteXML ( PMTicketRef ticket, FILE *file );
A reference to a ticket created by calling the function PMTicketCreate.
On input, the file to which you want the XML data to be written.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Converts a ticket to XML and then writes it to a file.
OSStatus PMTicketWriteXMLToFile ( PMTicketRef ticket, const char *path );
A reference to a ticket created by calling the function PMTicketCreate.
On input, the path of the file to which you want the XML data to be written. The function opens the file or creates one if one doesn’t exist.
A result code. See “Ticket Services Result Codes.”
PMTicket.h
Converts a ticket saved as XML to a ticket.
OSStatus PMXMLToTicket ( CFAllocatorRef allocator, CFDataRef anXMLTicket, PMTicketRef *ticket, CFStringRef *conversionError );
A reference to the allocator object to be used for allocating memory. Pass a reference to a valid allocator or kCFAllocatorDefault to request the default allocator.
A reference to Core Foundation data that contains previously-converted job template data.
On return, a reference to a ticket that contains the data converted from the XML data specified by the anXMLTicket parameter.
On return, a reference to a CFString object that specifies errors during the conversion process, if any. Pass NULL if you are not interested in getting the errors.
A result code. See “Ticket Services Result Codes.”
PMTicket.hRepresents a static list of C-string pointers.
typedef CStrList ConstCStrList;
For more information see “CStrList.”
PMTicket.h
Represents a static list of PMRect data structures.
typedef PMRectList ConstPMRectList;
For more information see “PMRectList.”
PMTicket.h
Represents a static list of SInt32List data structures.
typedef SInt32List ConstSInt32List;
Form more information see “SInt32List.”
PMTicket.h
Contains an array of CString pointers and the number of pointers in the array.
struct CStrList {
SInt32 count;
char **strArray;
};
typedef struct CStrList CStrList;
countThe number of CString pointers in the array.
strArrayA pointer to an array of CString pointers.
PMTicket.h
Represents printing phases.
typedef UInt16 PMPrintingPhaseType;
For more information see “Printing Phase Types.”
PMTicket.h
Contains a list of PMRect data structures.
struct PMRectList {
SInt32 count;
PMRect **pmRectArray;
};
typedef struct PMRectList PMRectList;
countThe number of PMRect pointers in the array.
pmRectArrayA pointer to a list of PMRect data structures.
A PMRect data structure contains a set of four double values (top, left, bottom, and right). This structure is used to specify page and paper rectangles.
PMTicket.h
Refers to a template object that contains private variables and functions necessary to represent a job template.
typedef struct OpaquePMTemplateRef* PMTemplateRef;
PMTicket.h
Represents values that indicate error conditions.
typedef SInt16 PMTicketErrors;
PMTicket.h
Contains information about a ticket item.
struct PMTicketItemStruct {
char *key;
PMTicketItemType itemType;
Boolean locked;
union {
const void *GenericData;
const char *cString;
SInt32 sInt32;
UInt32 boolean;
ConstCStrList *cStrlist;
PMRect *rect;
ConstSInt32List *sInt32List;
ConstPMRectList *pmRectList;
} value;
};
keyA string that uniquely identifies the item.
itemTypeThe type of item defined in the union.
lockedThe lock state of the item.
valueThe data associated with the item.
You can use this structure to define a static ticket item. An array of these structures can then be converted to a ticket by calling the function PMTicketFillFromArray.
Represents a ticket item type.
typedef UInt16 PMTicketItemType;
PMTicket.h
Refers to a ticket object that contains private variables and functions necessary to represent a ticket.
typedef struct OpaquePMTicketRef* PMTicketRef;
PMTicket.h
Represents a ticket type.
typedef SInt16 PMTicketType;
For more information see “PMTicketType.”
PMTicket.h
Represents a value type.
typedef SInt32 PMValueType;
For more information see “Item Value Types.”
PMTemplate.h
Contains an array of SInt32 values.
struct SInt32List {
SInt32 count;
const SInt32 *sInt32Array;
};
typedef struct SInt32List SInt32List;
countThe number of signed 32-bit values in the array.
sInt32ArrayA pointer to the array.
PMTicket.hDefines strings and keys for items related to ColorSync options.
#define kPMColorDeviceIDStr kPMPrinterInfoPrelude "PMColorDeviceID" #define kPMColorDeviceIDKey CFSTR(kPMColorDeviceIDStr) #define kPMColorSyncProfilesStr kPMPrinterInfoPrelude "PMColorSyncProfiles" #define kPMColorSyncProfilesKey CFSTR(kPMColorSyncProfilesStr)
kPMColorDeviceIDStrThe color device ID string.
kPMColorDeviceIDKeyThe value of this key is a CFString representing a CFUUID; it must be unique per device.
kPMColorSyncProfilesStrThe ColorSync profiles sting.
kPMColorSyncProfilesKeyThe value of this key is a CFArray of CFDictionary data structures, one CFDictionary data structure for each factory profile.
Specify a constraint type for a job template entry.
typedef SInt32 PMConstraintType;
enum {
kPMConstraintUndefined = 0,
kPMConstraintRange = 1,
kPMConstraintList = 2,
kPMConstraintPrivate = 3
};
kPMConstraintUndefinedValues are not constrained.
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h.
kPMConstraintRangeValues are constrained by a range of two values, both of type CFTypeRef.
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h.
kPMConstraintListValues are constrained by an array.
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h.
kPMConstraintPrivateValues are constrained privately, and should not be checked by the system.
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h.
Defines strings and keys for items related to a converter setup ticket.
#define kPMConverterSetupPrelude "com.apple.print.ConverterSetup." #define kPMBandingRequestedStr kPMConverterSetupPrelude "PMBandingRequested" #define kPMBandingRequestedKey CFSTR(kPMBandingRequestedStr) #define kPMRequiredBandHeightStr kPMConverterSetupPrelude "PMRequiredBandHeight" #define kPMRequiredBandHeightKey CFSTR(kPMRequiredBandHeightStr) #define kPMDepthSwitchingEnabledStr kPMConverterSetupPrelude "PMDepthSwitching" #define kPMDepthSwitchingEnabledKey CFSTR(kPMDepthSwitchingEnabledStr) #define kPMWhiteSkippingEnabledStr kPMConverterSetupPrelude "PMWhiteSpaceSkipping" #define kPMWhiteSkippingEnabledKey CFSTR(kPMWhiteSkippingEnabledStr) #define kPMConverterResHorizontalStr kPMConverterSetupPrelude "PMConversionResHorizontal" #define kPMConverterResHorizontalKey CFSTR(kPMConverterResHorizontalStr) #define kPMConverterResVerticalStr kPMConverterSetupPrelude "PMConversionResVertcial" #define kPMConverterResVerticalKey CFSTR(kPMConverterResVerticalStr) #define kPMRequestedPixelFormatStr kPMConverterSetupPrelude "PMPixelFormat" #define kPMRequestedPixelFormatKey CFSTR(kPMRequestedPixelFormatStr) #define kPMRequestedPixelLayoutStr kPMConverterSetupPrelude "PMPixelLayout" #define kPMRequestedPixelLayoutKey CFSTR(kPMRequestedPixelLayoutStr) #define kPMCVColorSyncProfileIDKey CFSTR(kPMCVColorSyncProfileIDStr)
kPMConverterSetupPreludeThe converter-setup prelude sting.
kPMBandingRequestedStrThe banding-requested string.
kPMBandingRequestedKeyThe value of this key is a CFBoolean; turns banding on if it's available.
kPMRequiredBandHeightStrThe banding-height string.
kPMRequiredBandHeightKeyThe value of this key is a CFNumber value; specifies the number of scan lines needed for each band. If it specifies the whole page, banding is disabled.
kPMDepthSwitchingEnabledStrThe depth-switching-enabled string.
kPMDepthSwitchingEnabledKeyThe value of this key is a CFBoolean value; true specifies the printer module requests the converter to switch between black & white and color bands when possible.
kPMWhiteSkippingEnabledStrThe white-skipping-enabled string.
kPMWhiteSkippingEnabledKeyThe value of this key is a CFBoolean; true specifies the printer module requests the converter to skip over white space if possible.
kPMConverterResHorizontalStrThe horizontal rendering resolution string.
kPMConverterResHorizontalKeyThe value of this key is a CFNumber of type CFNumberDoubleType; specifies the final horizontal rendering resolution.
kPMConverterResVerticalStrThe vertical resolution string.
kPMConverterResVerticalKeyThe value of this key is a CFNumber of type CFNumberDoubleType; specifies the final vertical rendering resolution.
kPMRequestedPixelFormatStrThe pixel format string.
kPMRequestedPixelFormatKeyThe value of this key is a CFNumber of type CFNumberLongType; specifies the pixel format requested of the converter.
kPMRequestedPixelLayoutStrThe pixel layout string.
kPMRequestedPixelLayoutKeyThe value of this key is a CFNumber of type CFNumberLongType; specifies the pixel layout requested of the converter.
kPMCVColorSyncProfileIDKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type; specifies the profile ID for the ColorSync profile to be used with the print job.
Defines strings and keys for items related to data transmission.
#define kPMIsBinaryOKStr kPMPrinterInfoPrelude "PMIsBinaryOK" #define kPMIsBinaryOKKey CFSTR(kPMIsBinaryOKStr) #define kPM8BitCommStr kPMPrinterInfoPrelude "PM8BitComm" #define kPM8BitCommKey CFSTR(kPM8BitCommStr) #define kPMTransparentCommStr kPMPrinterInfoPrelude "PMTransparentComm" #define kPMTransparentCommKey CFSTR(kPMTransparentCommStr)
kPMIsBinaryOKStrThe binary is okay string.
kPMIsBinaryOKKeyThe value of this key is a CFBoolean representing the result of querying the PostScript printer about its ability to accept binary data. It is possible for the underlying communications to support binary data, both high bit characters and control characters, but for a spooler on the other end of the channel to not accept binary data. This value represents the spooler/printer's abilities.
kPM8BitCommStrThe 8-bit communication string.
kPM8BitCommKeyThe value of this key is a CFBoolean indicating whether the communications channel can transmit characters in the range 0x80 - )xFF inclusive without them being damaged or interpreted as channel control characters.
kPMTransparentCommStrThe transparent communication string.
kPMTransparentCommKeyThe value of this key is a CFBoolean indicating whether the communications channel can transmit characters in the range 0x00 - 0x1F inclusive without them being damaged or interpreted as channel control characters.
Defines strings and keys for items in a document ticket; currently not used.
#define kPMDocumentTicketPrelude "com.apple.print.DocumentTicket." #define kPMSpoolFormatStr kPMDocumentTicketPrelude "PMSpoolFormat" #define kPMSpoolFormatKey CFSTR(kPMSpoolFormatStr) #define kPMPrinterModuleFormatStr kPMDocumentTicketPrelude "PMDocPMInputFormat" #define kPMPrinterModuleFormatKey CFSTR(kPMPrinterModuleFormatStr)
kPMDocumentTicketPreludeCurrently not used.
kPMSpoolFormatStrCurrently not used.
kPMSpoolFormatKeyCurrently not used.
kPMPrinterModuleFormatStrCurrently not used.
kPMPrinterModuleFormatKeyCurrently not used.
Defines strings and keys for items in related to drawing resolution.
#define kPMPrinterSuggestedResStr kPMPrinterInfoPrelude "PMPrinterSuggestedRes" #define kPMPrinterSuggestedResKey CFSTR(kPMPrinterSuggestedResStr #define kPMPrinterMinResStr kPMPrinterInfoPrelude "PMPrinterMinRes" #define kPMPrinterMinResKey CFSTR(kPMPrinterMinResStr) #define kPMPrinterMaxResStr kPMPrinterInfoPrelude "PMPrinterMaxRes" #define kPMPrinterMaxResKey CFSTR(kPMPrinterMaxResStr)
kPMPrinterSuggestedResStrThe suggested application drawing resolutions string.
kPMPrinterSuggestedResKeyThe value of this key is the suggested application drawing resolutions key.
kPMPrinterMinResStrThe minimum drawing resolution string.
kPMPrinterMinResKeyThe value of this key is the minimum range of resolutions for the printer; specified as a CFArray of two CFNumber values of type kCFNumberDoubleType.
kPMPrinterMaxResStrThe maximum printer resolution string.
kPMPrinterMaxResKeyThe value of this key is the maximum range of resolutions for the printer; specified as a CFArray of two CFNumber values of type kCFNumberDoubleType.
Specify values for the duplex options key (kPMDuplexingKey.)
enum {
kPMDuplexNone = 1,
kPMDuplexNoTumble = 2,
kPMDuplexTumble = 3,
kPMSimplexTumble = 4,
kPMDuplexDefault = 1
};
kPMDuplexNoneDon’t use duplex.
Available in Mac OS X v10.0 and later.
Declared in PMDefinitions.h.
kPMDuplexNoTumblePrint on both sides of the paper; flip pages from left to right.
Available in Mac OS X v10.0 and later.
Declared in PMDefinitions.h.
kPMDuplexTumblePrint on both sides of the paper; tumbling so pages flip top to bottom.
Available in Mac OS X v10.0 and later.
Declared in PMDefinitions.h.
kPMSimplexTumblePrint on only one side of the paper, but tumble the images while printing.
Available in Mac OS X v10.0 and later.
Declared in PMDefinitions.h.
kPMDuplexDefaultDon’t use duplex; this option is the same as kPMDuplexNone.
Specify whether or not an error handler is available.
enum {
kPSNoErrorHandler = 0,
kPSErrorHandler = 1
};
kPSNoErrorHandlerSpecifies that an error handler is not available.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
kPSErrorHandlerSpecifies that an error handler is available.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
Specifies whether an item should be fetched.
#define kPMDontFetchItem NULL
Defines a string and key for installable printer options.
#define kPMInstallableOptionStr kPMPrinterInfoPrelude "PMInstallableOption" #define kPMInstallableOptionKey CFSTR(kPMInstallableOptionStr)
kPMInstallableOptionStrThe installable options string.
kPMInstallableOptionKeyThe value of this key is a packed array of Pascal strings that specifies the installable options in the PostScript printer description (PPD) file. The strings are as key-value pairs of PPD main and option keywords.
Specify the data type of a ticket or template item.
typedef UInt16 PMTicketItemType;
enum {
kPMItemInvalidType = 0,
kPMItemCStringType = 1,
kPMItemSInt32Type = 2,
kPMItemBooleanType = 3,
kPMItemCStrListType = 4,
kPMItemPMRectType = 5,
kPMItemSInt32ListType = 6,
kPMItemPMRectListType = 7
};
kPMItemInvalidTypeThe type is not valid.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
kPMItemCStringTypeA C-style string pointer.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
kPMItemSInt32TypeA signed 32-bit integer.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
kPMItemBooleanTypeA Boolean value.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
kPMItemCStrListTypeA list of C-style strings
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
kPMItemPMRectTypeA pointer to a PMRect data structure.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
kPMItemSInt32ListTypeA pointer to an SInt32List data structure.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
kPMItemPMRectListTypeA pointer to a PMRectList data structure.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
Defines strings and keys for items in a job ticket.
#define kPMJobTicketPrelude "com.apple.print.JobInfo." #define kPMJobNameStr kPMJobTicketPrelude "PMJobName" #define kPMJobNameKey CFSTR(kPMJobNameStr) #define kPMApplicationNameStr kPMJobTicketPrelude "PMApplicationName" #define kPMApplicationNameKey CFSTR(kPMApplicationNameStr) #define kPMUserLanguageStr kPMJobTicketPrelude "PMUserLanguage" #define kPMUserLanguageKey CFSTR(kPMUserLanguageStr) #define kPMJobOwnerStr kPMJobTicketPrelude "PMJobOwner" #define kPMJobOwnerKey CFSTR(kPMJobOwnerStr) #define kPMJobTemplateStr kPMJobTicketPrelude "PMJobTemplate" #define CFSTR(kPMJobTemplateStr) #define kPMPhaseStr kPMJobTicketPrelude "PMPrintingPhase" #define kPMPhaseKey CFSTR(kPMPhaseStr) #define kPMOutputTypeStr kPMJobTicketPrelude "PMOutputType" #define kPMOutputTypeKey CFSTR(kPMOutputTypeStr)
kPMJobTicketPreludeThe job ticket prelude string.
kPMJobNameStrThe job name string.
kPMJobNameKeyThe value of this key is a CFString that specifies the name of the job to be displayed in the print queue dialog.
kPMApplicationNameStrThe application name string.
kPMApplicationNameKeyThe value of this key is a CFString that specifies the application's name.
kPMUserLanguageStrThe user language string.
kPMUserLanguageKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type.
kPMJobOwnerStrThe job owner string.
kPMJobOwnerKeyThe value of this key is a CFString that specifies the name of the user who submitted the job.
kPMJobTemplateStrThe job template string.
kPMJobTemplateKeyThe value of this key is a CFDictionary that is actually a PMTemplateRef.
kPMPhaseStrThe printing phase string.
kPMPhaseKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type; specifies an enumeration—Spooling, RIPing, and so forth.
kPMOutputTypeStrThe output type string.
kPMOutputTypeKeyThe value of this key is a CFString that specifies a Mime type from the kPMOutputTypeListKey array generated by the printer module.
Specifies the default value for copy/collate.
enum {
kPMCopyCollateDefault = 1
};
Defines strings and keys for items in a list ticket.
#define kPMTicketListPrelude "com.apple.print.TicketList."
Specifies whether an item is locked or unlocked.
enum {
kPMUnlocked = 0,
kPMLocked = 1
};
kPMUnlockedIndicates items is unlocked.
Available in Mac OS X v10.2 and later.
Declared in PMDefinitions.h.
kPMLockedIndicates items is locked.
Available in Mac OS X v10.2 and later.
Not available to 64-bit applications.
Declared in PMDefinitionsDeprecated.h.
Defines strings and keys for items related to printer memory.
#define kPMTotalMemInstalledStr kPMPrinterInfoPrelude "PMTotalMemInstalled" #define kPMTotalMemInstalledKey CFSTR(kPMTotalMemInstalledStr) #define kPMTotalMemAvailableStr kPMPrinterInfoPrelude "PMTotalMemAvailable" #define kPMTotalMemAvailableKey CFSTR(kPMTotalMemAvailableStr)
kPMTotalMemInstalledStrThe memory installed string.
kPMTotalMemInstalledKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type; specifies the memory installed in the printer.
kPMTotalMemAvailableStrThe total memory available string.
kPMTotalMemAvailableKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type; specifies the remaining memory available for use.
Defines strings and keys for items in a page format ticket.
#define kPMPageFormatPrelude "com.apple.print.PageFormat." #define kPMAdjustedPaperRectStr kPMPageFormatPrelude "PMAdjustedPaperRect" #define kPMAdjustedPaperRectKey CFSTR(kPMAdjustedPaperRectStr) #define kPMAdjustedPageRectStr kPMPageFormatPrelude "PMAdjustedPageRect" #define kPMAdjustedPageRectKey CFSTR(kPMAdjustedPageRectStr) #define kPMDrawingResHorizontalStr kPMPageFormatPrelude "PMHorizontalRes" #define kPMDrawingResHorizontalKey CFSTR(kPMDrawingResHorizontalStr) #define kPMDrawingResVerticalStr kPMPageFormatPrelude "PMVerticalRes" #define kPMDrawingResVerticalKey CFSTR(kPMDrawingResVerticalStr) #define kPMPageScalingHorizontalStr kPMPageFormatPrelude "PMScaling" #define kPMPageScalingHorizontalKey CFSTR(kPMPageScalingHorizontalStr) #define kPMPageScalingVerticalStr kPMPageFormatPrelude "PMVerticalScaling" #define kPMPageScalingVerticalKey CFSTR(kPMPageScalingVerticalStr) #define kPMPageOrientationStr kPMPageFormatPrelude "PMOrientation" #define kPMPageOrientationKey CFSTR(kPMPageOrientationStr) #define kPMPageBackupRecordHdlStr kPMPageFormatPrelude "BackupPrintRecordHandle" #define kPMPageBackupRecordHdlKey CFSTR(kPMPageBackupRecordHdlStr) #define kPMPageBackupRecordDataStr kPMPageFormatPrelude "BackupPrintRecord" #define kPMPageBackupRecordDataKey CFSTR kPMPageBackupRecordDataStr) #define kPMPageCustomDialogHdlStr kPMPageFormatPrelude "CustomDialogRecord" #define kPMPageCustomDialogHdlKey CFSTR(kPMPageCustomDialogHdlStr) #define kPMFormattingPrinterStr kPMPageFormatPrelude "FormattingPrinter" #define kPMFormattingPrinterKey CFSTR(kPMFormattingPrinterStr)
kPMPageFormatPreludeThe page format ticket prelude string.
kPMAdjustedPaperRectStrThe adjusted paper rectangle string.
kPMAdjustedPaperRectKeyThe value of this key is a CFArray of four CFNumbers of type kCFNumberDoubleType for the adjusted paper rectangle, in points.
kPMAdjustedPageRectStrThe adjusted page rectangle string.
kPMAdjustedPageRectKeyThe value of this key is a CFArray of four CFNumbers of type kCFNumberDoubleType for the adjusted page rectangle, in points.
kPMDrawingResHorizontalStrThe horizontal drawing resolution string.
kPMDrawingResHorizontalKeyThe value of this key is a CFNumber of type kCFNumberDoubleType; the drawing resolution in horizontal direction.
kPMDrawingResVerticalStrThe vertical drawing resolution string.
kPMDrawingResVerticalKeyThe value of this key is a CFNumber of type kCFNumberDoubleType; the drawing resolution in vertical direction.
kPMPageScalingHorizontalStrThe horizontal page scaling string.
PMPageScalingHorizontalKeyThe value of this key is a CFNumber of type kCFNumberDoubleType; the horizontal scaling factor applied to original page size.
kPMPageScalingVerticalStrThe vertical page scaling string.
kPMPageScalingVerticalKeyThe value of this key is a CFNumber of type kCFNumberDoubleType; the vertical scaling factor applied to original page size.
kPMPageOrientationStrThe page orientation string.
kPMPageOrientationKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type; PMOrientation, 1 = portrait, 2 = landscape, 3 = reverse portrait, 4 = reverse landscape.
kPMPageBackupRecordHdlStrThe page backup record handle string.
kPMPageBackupRecordHdlKeyThe value of this key is a print record handle (CFData ); not used when data is flattened. (Mac OS 8 and 9 only)
kPMPageBackupRecordDataStrThe page backup record data string.
kPMPageBackupRecordDataKeyThe value of this key is a print record (CFData) stored in complete form; used when flattening ticket with the print record. ((Mac OS 8 and 9 only)
kPMPageCustomDialogHdlStrThe page custom dialog handle string.
kPMPageCustomDialogHdlKey The value of this key is a handle (CFData) to the print record using for custom dialog calls; not stored when flattened. (Mac OS 8 and 9 only)
kPMFormattingPrinterStrThe formatting printer string.
kPMFormattingPrinterKeyThe value of this key is a CFString that specifies name of the formatting printer.
Defines strings and keys for items in a page ticket; currently not used.
#define kPMPageTicketPrelude "com.apple.print.PageTicket."
Defines strings and keys for items in a paper info ticket.
#define kPMPaperInfoPrelude "com.apple.print.PaperInfo." #define kPMPaperNameStr kPMPaperInfoPrelude "PMPaperName" #define kPMPaperNameKey CFSTR(kPMPaperNameStr) #define kPMUnadjustedPaperRectStr kPMPaperInfoPrelude "PMUnadjustedPaperRect" #define kPMUnadjustedPaperRectKey CFSTR(kPMUnadjustedPaperRectStr) #define kPMUnadjustedPageRectStr kPMPaperInfoPrelude "PMUnadjustedPageRect" #define kPMUnadjustedPageRectKey CFSTR(kPMUnadjustedPageRectStr) #define kPMMatchPaperStr kPMPaperInfoPrelude "PMMatchPaper" #define kPMMatchPaperKey CFSTR(kPMMatchPaperStr)
kPMPaperInfoPreludeThe paper info ticket prelude string.
kPMPaperNameStrThe paper name string.
kPMPaperNameKeyThe paper name key specifies the name of the paper displayed in the user interface.
kPMUnadjustedPaperRectStrThe unadjusted paper rectangle string.
kPMUnadjustedPaperRectKeyThe unadjusted paper rectangle key specifies the unadjusted paper rectangle.
kPMUnadjustedPageRectStrThe unadjusted page rectangle string.
kPMUnadjustedPageRectKeyThe unadjusted page rectangle key specifies the unadjusted page rectangle.
kPMMatchPaperStrThe paper match string.
kPMMatchPaperKeyThe paper match key specifies how closely the printing system must match the specified paper.
Specify language-level targets for PostScript printing.
enum {
kPMPSTargetLanguageLevel2and3 = -3,
kPMPSTargetLanguageLevel1and2 = -2,
kPMPSTargetLanguageLevelUnknown = -1,
kPMPSTargetLanguageLevel1 = 1,
kPMPSTargetLanguageLevel2 = 2,
kPMPSTargetLanguageLevel3 = 3,
kPMPSTargetLanguageLevelDefault = -1
};
kPMPSTargetLanguageLevel2and3Level 2 compatible, may take advantage of Level 3 features.
Available in Mac OS X v10.1 and later.
Declared in PMTicket.h.
kPMPSTargetLanguageLevel1and2Level 1 compatible, may take advantage of Lever 2 and 3 features.
Available in Mac OS X v10.1 and later.
Declared in PMTicket.h.
kPMPSTargetLanguageLevelUnknownLanguage level of target is unknown.
Available in Mac OS X v10.1 and later.
Declared in PMTicket.h.
kPMPSTargetLanguageLevel1Level 1.
Available in Mac OS X v10.1 and later.
Declared in PMTicket.h.
kPMPSTargetLanguageLevel2Level 2.
Available in Mac OS X v10.1 and later.
Declared in PMTicket.h.
kPMPSTargetLanguageLevel3Level 3.
Available in Mac OS X v10.1 and later.
Declared in PMTicket.h.
kPMPSTargetLanguageLevelDefaultSame as kPMPSTargetLanguageLevelUnknown.
Available in Mac OS X v10.1 and later.
Declared in PMTicket.h.
Defines strings and keys for items related to PostScript printer description files.
#define kPMDescriptionFileStr kPMPrinterInfoPrelude "PMDescriptionFile" #define kPMDescriptionFileKey CFSTR(kPMDescriptionFileStr) #define kPMCompiledPPDStr kPMPrinterInfoPrelude "PMCompiledPPD" #define kPMCompiledPPDKey CFSTR(kPMCompiledPPDStr)
kPMDescriptionFileStrThe printer description file string.
kPMDescriptionFileKeyThe value of this key is a CFString; specifies the PostScript printer description file name or other description file.
kPMCompiledPPDStrThe compiled PostScript printer description string.
kPMCompiledPPDKeyThe value of this key is a compiled PostScript printer description (CFData).
Defines a string and key for a PostScript printer driver.
#define kPMPrinterIsPostScriptDriverStr kPMPrinterInfoPrelude "PMIsPostScriptDriver" #define kPMPrinterIsPostScriptDriverKey CFSTR(kPMPrinterIsPostScriptDriverStr)
kPMPrinterIsPostScriptDriverStrThe PostScript printer driver string.
kPMPrinterIsPostScriptDriverKeyThe value of this key is a CFBoolean value.
Defines strings and keys for items in a print settings ticket.
#define kPMBorderStr kPMPrintSettingsPrelude "PMBorder" #define kPMBorderKey CFSTR(kPMBorderStr) #define kPMBorderTypeStr kPMPrintSettingsPrelude "PMBorderType" #define kPMBorderTypeKey CFSTR(kPMBorderTypeStr) #define kPMLayoutNUpStr kPMPrintSettingsPrelude "PMLayoutNUp" #define kPMLayoutNUpKey CFSTR(kPMLayoutNUpStr #define kPMLayoutRowsStr kPMPrintSettingsPrelude "PMLayoutRows" #define kPMLayoutRowsKey CFSTR(kPMLayoutRowsStr) #define kPMLayoutColumnsStr kPMPrintSettingsPrelude "PMLayoutColumns" #define kPMLayoutColumnsKey CFSTR(kPMLayoutColumnsStr) #define kPMLayoutDirectionStr kPMPrintSettingsPrelude "PMLayoutDirection" #define kPMLayoutDirectionKey CFSTR(kPMLayoutDirectionStr) #define kPMLayoutTileOrientationStr kPMPrintSettingsPrelude "PMLayoutTileOrientation" #define kPMLayoutTileOrientationKey CFSTR(kPMLayoutTileOrientationStr) #define kPMQualityStr kPMPrintSettingsPrelude "PMQuality" #define kPMQualityKey CFSTR(kPMQualityStr) #define kPMPaperTypeStr kPMPrintSettingsPrelude "PMPaperType" #define kPMPaperTypeKey CFSTR(kPMPaperTypeStr) #define kPMJobStateStr kPMPrintSettingsPrelude "PMJobState" #define kPMJobStateKey CFSTR(kPMJobStateStr) #define kPMJobHoldUntilTimeStr kPMPrintSettingsPrelude "PMJobHoldUntilTime" #define kPMJobHoldUntilTimeKey CFSTR(kPMJobHoldUntilTimeStr) #define kPMJobPriorityStr kPMPrintSettingsPrelude "PMJobPriority" #define kPMJobPriorityKey CFSTR(kPMJobPriorityStr) #define kPMPaperSourceStr kPMPrintSettingsPrelude "PMPaperSource" #define kPMPaperSourceKey CFSTR(kPMPaperSourceStr) #define kPMDuplexingStr kPMPrintSettingsPrelude "PMDuplexing" #define kPMDuplexingKey CFSTR(kPMDuplexingStr) #define kPMColorModeStr kPMPrintSettingsPrelude "PMColorMode" #define kPMColorModeKey CFSTR(kPMColorModeStr) #define kPMColorSyncProfileIDStr kPMPrintSettingsPrelude "PMColorSyncProfileID" #define kPMColorSyncProfileIDKey CFSTR(kPMColorSyncProfileIDStr) #define kPMColorSyncSystemProfilePathStr kPMPrintSettingsPrelude "PMColorSyncSystemProfilePath" #define kPMColorSyncSystemProfilePathKey CFSTR(kPMColorSyncSystemProfilePathStr) #define kPMPrintScalingHorizontalStr kPMPrintSettingsPrelude "PMScaling" #define kPMPrintScalingHorizontalKey CFSTR(kPMPrintScalingHorizontalStr) #define kPMPrintScalingVerticalStr kPMPrintSettingsPrelude "PMVerticalScaling" #define kPMPrintScalingVerticalKey CFSTR(kPMPrintScalingVerticalStr) #define kPMPrintScalingAlignmentStr kPMPrintSettingsPrelude "PMScalingAlignment" #define kPMPrintScalingAlignmentKey CFSTR(kPMPrintScalingAlignmentStr) #define kPMPrintOrientationStr kPMPrintSettingsPrelude "PMOrientation" #define kPMPrintOrientationKey CFSTR(kPMPrintOrientationStr) #define kPMPreviewStr kPMPrintSettingsPrelude "PMPreview" #define kPMPreviewKey CFSTR(kPMPreviewStr #define kPMPrintBackupRecordHdlStr kPMPrintSettingsPrelude "BackupPrintRecordHandle" #define kPMPrintBackupRecordHdlKey CFSTR(kPMPrintBackupRecordHdlStr) #define kPMPrintBackupRecordDataStr kPMPrintSettingsPrelude "BackupPrintRecord" #define kPMPrintBackupRecordDataKey CFSTR(kPMPrintBackupRecordDataStr) #define kPMPrintCustomDialogHdlStr kPMPrintSettingsPrelude "CustomDialogRecord" #define kPMPrintCustomDialogHdlKey CFSTR(kPMPrintCustomDialogHdlStr) #define kPMPrimaryPaperFeedStr kPMPrintSettingsPrelude "PMPrimaryPaperFeed" #define kPMPrimaryPaperFeedKey CFSTR(kPMPrimaryPaperFeedStr) #define kPMSecondaryPaperFeedStr kPMPrintSettingsPrelude "PMSecondaryPaperFeed" #define kPMSecondaryPaperFeedKey CFSTR(kPMSecondaryPaperFeedStr) #define kPMPSErrorHandlerStr kPMPrintSettingsPrelude "PMPSErrorHandler" #define kPMPSErrorHandlerKey CFSTR(kPMPSErrorHandlerStr) #define kPMPSErrorOnScreenStr kPMPrintSettingsPrelude "PMPSErrorOnScreen" #define kPMPSErrorOnScreenKey CFSTR(kPMPSErrorOnScreenStr) #define kPMPSTraySwitchStr kPMPrintSettingsPrelude "PMPSTraySwitch" #define kPMPSTraySwitchKey CFSTR(kPMPSTraySwitchStr) #define kPMPPDDictStr kPMPrintSettingsPrelude "kPMPPDDictStr" #define kPMPPDDictKey CFSTR(kPMPPDDictStr)
kPMPrintSettingsPreludeThe print settings ticket prelude string.
kPMDestinationTypeStrThe destination type string.
kPMDestinationTypeKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type; can be kPMDestinationPrinter, kPMDestinationFile, or kPMDestinationFax.
kPMOutputFilenameStrThe output filename string.
kPMOutputFilenameKeyThe value of this key is a CFString; a URL that specifies the output filename.
kPMCopiesStrThe copies string.
kPMCopiesKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type that specifies number of copies to print.
kPMCopyCollateStrThe copy/collate string.
kPMCopyCollateKeyThe value of this key is a CFBoolean value; used to turn collating on.
kPMReverseOrderStrThe reverse order string.
kPMReverseOrderKeyThe value of this key is a CFBoolean value; true specifies to print sheets back to front. All layout options are unaffected by reverse order.
kPMPageRangeStrThe page range string.
kPMPageRangeKeyThe value of this key is a CFArray of type kCFNumberSInt32Type; indicates valid range of pages that the application is able to print.
kPMFirstPageStrThe first page string.
kPMFirstPageKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type; the first page selected by user to print.
kPMLastPageStrThe last page string.
kPMLastPageKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type; the last page selected by user to print.
kPMBorderStrThe border string.
kPMBorderKeyThe value of this key is a CFBoolean; true specifies to use borders.
kPMBorderTypeStrThe border type string.
kPMBorderTypeKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type; specifies an enumeration (PMBorderType).
kPMLayoutNUpStrThe layout string.
kPMLayoutNUpKeyThe value of this key is a CFBoolean value; turns N-Up layout on.
kPMLayoutRowsStrThe layout rows string.
kPMLayoutRowsKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type; indicates number of layout rows.
kPMLayoutColumnsStrThe layout columns string.
kPMLayoutColumnsKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type; indicates number of layout columns.
kPMLayoutDirectionStrThe layout direction string.
kPMLayoutDirectionKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type; specifies an enumeration (PMLayoutDirection).
kPMLayoutTileOrientationStrThe layout tile orientation string.
kPMLayoutTileOrientationKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type; PMOrientation, 1 = portrait, 2 = landscape, etc.
kPMQualityStrThe print quality string.
kPMQualityKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type; specfies an enumeration—draft, normal, best.
kPMPaperTypeStrThe paper type string.
kPMPaperTypeKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type.
kPMJobStateStrThe job state string.
kPMJobStateKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type; specifies an enumeration—active = 0, pending, hold until, hold indefinitely, aborted, finished.
kPMJobHoldUntilTimeStrThe job hold until string.
kPMJobHoldUntilTimeKeyThe value of this key is a CFDate; specifies time to print the job.
kPMJobPriorityStrThe job priority string.
kPMJobPriorityKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type; specifies an enumeration—Low = 0, normal, urgent.
kPMPaperSourceStrThe paper source string.
kPMPaperSourceKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type; specifies an enumeration of paper sources.
kPMDuplexingStrThe duplexing string.
kPMDuplexingKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type; specifies an enumeration—kPMDuplexNone, kPMDuplexNoTumble, kPMDuplexTumble, kPMSimplexTumble.
kPMColorModeStrThe color mode string.
kPMColorModeKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type; specifies an enumeration—Black and White, Grayscale, Color, HiFi Color.
kPMColorSyncProfileIDStrThe ColorSync Profile ID string.
kPMColorSyncProfileIDKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type; specifies the ID of the ColorSync profile to use.
kPMColorSyncSystemProfilePathStrThe ColorSync system profile path string.
kPMColorSyncSystemProfilePathKeyThe value of this key is a CFString; specifies the path of system profile.
kPMPrintScalingHorizontalStrThe horizontal print scaling string.
kPMPrintScalingHorizontalKeyThe value of this key is a CFNumber of type kCFNumberDoubleType; specifies the horizontal scaling factor applied to original page size.
kPMPrintScalingVerticalStrThe vertical print scaling string.
kPMPrintScalingVerticalKeyThe value of this key is a CFNumber of type kCFNumberDoubleType; specifies the vertical scaling factor applied to original page size.
kPMPrintScalingAlignmentStrThe print scaling alignment string.
kPMPrintScalingAlignmentKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type; specifies an enumeration (PMScalingAlignment).
kPMPrintOrientationStrThe print orientation string.
kPMPrintOrientationKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type; specifies and enumeration—PMOrientation, 1 = portrait, 2 = landscape, etc.
kPMPreviewStrThe print preview string.
kPMPreviewKeyThe value of this key is a CFString; “YES” indicates the user clicked the Preview button.
kPMPrintBackupRecordHdlStrThe print backup record handle string.
kPMPrintBackupRecordHdlKeyThe value of this key is a print record handle (CFData); not used when data is flattened. (Mac OS 8 and 9 only)
kPMPrintBackupRecordDataStrThe print backup record data string.
kPMPrintBackupRecordDataKeyThe value of this key is a print record (CFData) stored in complete form; used when flattening a ticket with the print record. (Mac OS 8 and 9 only)
kPMPrintCustomDialogHdlStrThe print custom dialog handle string.
kPMPrintCustomDialogHdlKeyThe value of this key is a handle (CFData) to the print record using for custom dialog calls; not stored when data is flattened. (Mac OS 8 and 9 only)
kPMPrimaryPaperFeedStrThe primary paper feed string.
kPMPrimaryPaperFeedKeyThe value of this key is a CFArray; the main and option PPD keywords for input paper feed.
kPMSecondaryPaperFeedStrThe secondary paper feed string.
kPMSecondaryPaperFeedKeyThe value of this key is a CFArray; the main and option PPD keywords for input paper feed.
kPMPSErrorHandlerStrThe PostScript error handle string.
kPMPSErrorHandlerKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type.
kPMPSErrorOnScreenStrThe PostScript error on screen string.
kPMPSErrorOnScreenKeyThe value of this key is a CFBoolean; turns PostScript error onscreen notification on.
kPMPSTraySwitchStrThe PostScript tray switch string.
kPMPSTraySwitchKeyThe value of this key is a CFArray; the main and option PostScript printer description file keywords for tray switching.
kPMPPDDictStrThe PostScript printer description file string.
kPMPPDDictKeyThe value of this key is a CFDictionary; the main and option PostScript printer description file keywords for additional features.
Defines a string and key for the printer driver creator code.
#define kPMDriverCreatorStr kPMPrinterInfoPrelude "PMDriverCreator " #define kPMDriverCreatorKey CFSTR(kPMDriverCreatorStr)
kPMDriverCreatorStrThe printer driver creator string.
kPMDriverCreatorKeyThe value of this key is a CFNumber of type kCFNumberSInt32Type that specifies the creator code for the printer driver.
Defines a string and key for the printer fonts.
#define kPMPrinterFontStr kPMPrinterInfoPrelude "Printer Fonts " #define kPMPrinterFontKey CFSTR(kPMPrinterFontStr)
kPMPrinterFontStrThe printer font string.
kPMPrinterFontKeyThe value of this key is CFData that specifies the printer resident fonts.
Defines strings and keys for items in a printer info ticket.
#define kPMPrinterInfoPrelude "com.apple.print.PrinterInfo." #define kPMPrinterLongNameStr kPMPrinterInfoPrelude "PMPrinterLongName" #define kPMPrinterLongNameKey CFSTR(kPMPrinterLongNameStr) #define kPMPrinterShortNameStr kPMPrinterInfoPrelude "PMPrinterShortName" #define kPMPrinterShortNameKey CFSTR(kPMPrinterShortNameStr) #define kPMMakeAndModelNameStr kPMPrinterInfoPrelude "PMMakeAndModelName" #define kPMMakeAndModelNameKey CFSTR(kPMMakeAndModelNameStr) #define kPMPrinterAddressStr kPMPrinterInfoPrelude "PMPrinterAddress" #define kPMPrinterAddressKey CFSTR(kPMPrinterAddressStr) #define kPMSupportsColorStr kPMPrinterInfoPrelude "PMSupportsColor" #define kPMSupportsColorKey CFSTR(kPMSupportsColorStr) #define kPMDoesCopiesStr kPMPrinterInfoPrelude "PMDoesCopies" #define kPMDoesCopiesKey CFSTR(kPMDoesCopiesStr) #define kPMDoesCopyCollateStr kPMPrinterInfoPrelude "PMDoesCopyCollate" #define kPMDoesCopyCollateKey CFSTR(kPMDoesCopyCollateStr) #define kPMDoesReverseOrderStr kPMPrinterInfoPrelude "PMDoesReverseOrderK" #define kPMDoesReverseOrderKey CFSTR(kPMDoesReverseOrderStr) #define kPMInputFileTypeListStr kPMPrinterInfoPrelude "PMInputFileTypeList" #define kPMInputFileTypeListKey CFSTR(kPMInputFileTypeListStr) #define kPMOutputTypeListStr kPMPrinterInfoPrelude "PMOutputTypeList" #define kPMOutputTypeListKey CFSTR(kPMOutputTypeListStr)
kPMPrinterInfoPreludeThe printer info ticket prelude string.
kPMPrinterLongNameStrThe printer long name string.
kPMPrinterLongNameKeyThe value of this key is a CFString; specifies the full name of the printer.
kPMPrinterShortNameStrThe printer short name string.
kPMPrinterShortNameKeyThe value of this key is a CFString; specifies a shortened version of the printer name.
kPMMakeAndModelNameStrThe printer make and model string.
kPMMakeAndModelNameKeyThe value of this key is a CFString; specifies the product name used for the printer
kPMPrinterAddressStrThe printer address string.
kPMPrinterAddressKeyThe value of this key is the product address (CFData).
kPMSupportsColorStrThe color supported string.
kPMSupportsColorKeyThe value of this key is a CFBoolean; true if the printer supports color printing.
kPMDoesCopiesStrThe copies string.
kPMDoesCopiesKeyThe value of this key is a CFBoolean; true if the printer supports copies.
kPMDoesCopyCollateStrThe collation string.
kPMDoesCopyCollateKeyThe value of this key is a CFBoolean; true if the printer supports collation.
kPMDoesReverseOrderStrThe reverse-order string.
kPMDoesReverseOrderKeyThe value of this key is a CFBoolean; true if the printer can print in reverse order.
kPMInputFileTypeListStrThe file type list string.
kPMInputFileTypeListKeyThe value of this key is a CFArray of CFString data that indicates file types.
kPMOutputTypeListStrThe output type list string.
kPMOutputTypeListKeyThe value of this key is a CFArray of CFString data that indicates the MIME types for the data that can be sent to an I/O module.
Specify the phase of the printing process.
typedef UInt16 PMPrintingPhaseType;
enum {
kPMPhaseUnknown = 0,
kPMPhasePreDialog = 1,
kPMPhaseDialogsUp = 2,
kPMPhasePostDialogs = 3,
kPMPhasePreAppDrawing = 4,
kPMPhaseAppDrawing = 5,
kPMPhasePostAppDrawing = 6,
kPMPhasePreConversion = 7,
kPMPhaseConverting = 8,
kPMPhasePostConversion = 9,
kPMPhasePrinting = 10
};
kPMPhaseUnknownPhase unknown.
Available in Mac OS X v10.0 through Mac OS X v10.4.
Declared in PMTicket.h.
kPMPhasePreDialogJust before the code to open the dialog.
Available in Mac OS X v10.0 through Mac OS X v10.4.
Declared in PMTicket.h.
kPMPhaseDialogsUpA printing dialogs is open.
Available in Mac OS X v10.0 through Mac OS X v10.4.
Declared in PMTicket.h.
kPMPhasePostDialogsThe printing dialogs have been opened and are now closed, but the job is not yet spooling.
Available in Mac OS X v10.0 through Mac OS X v10.4.
Declared in PMTicket.h.
kPMPhasePreAppDrawingThe job is just about to spool.
Available in Mac OS X v10.0 through Mac OS X v10.4.
Declared in PMTicket.h.
kPMPhaseAppDrawingDrawing commands are now being spooled from the application.
Available in Mac OS X v10.0 through Mac OS X v10.4.
Declared in PMTicket.h.
kPMPhasePostAppDrawingSpooling is finished, not the job is not yet rendered or converted.
Available in Mac OS X v10.0 through Mac OS X v10.4.
Declared in PMTicket.h.
kPMPhasePreConversionThe job is just about to be converted to its final format (PostScript, Raster, or other).
Available in Mac OS X v10.0 through Mac OS X v10.4.
Declared in PMTicket.h.
kPMPhaseConvertingThe job is being converted from the spool file to the final format.
Available in Mac OS X v10.0 through Mac OS X v10.4.
Declared in PMTicket.h.
kPMPhasePostConversionThe data is ready for the printer and waiting for completion.
Available in Mac OS X v10.0 through Mac OS X v10.4.
Declared in PMTicket.h.
kPMPhasePrintingThe job is waiting for the printer.
Available in Mac OS X v10.0 through Mac OS X v10.4.
Declared in PMTicket.h.
Printing phase types signal a shift from one printing phase to the next and are set by many parts of the printing system. You can check the phase by testing for greater-than and less-than conditions.
Specify options for rasterizing.
enum {
kPMPSTTRasterizerUnknown = 0,
kPMPSTTRasterizerNone = 1,
kPMPSTTRasterizerAccept68K = 2,
kPMPSTTRasterizerType42 = 3
};
kPMPSTTRasterizerUnknownRasterizer unknown.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
kPMPSTTRasterizerNoneNo rasterizer.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
kPMPSTTRasterizerAccept68KAccepts 68 K.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
kPMPSTTRasterizerType42Uses type 42.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
Specify the data type of a job template entry.
typedef SInt32 PMValueType;
enum {
kPMValueUndefined = 0,
kPMValueBoolean = 1,
kPMValueData = 2,
kPMValueString = 3,
kPMValueSInt32 = 4,
kPMValueSInt32Range = 5,
kPMValueUInt32 = 6,
kPMValueUInt32Range = 7,
kPMValueDouble = 8,
kPMValueDoubleRange = 9,
kPMValuePMRect = 10,
kPMValueDate = 11,
kPMValueArray = 12,
kPMValueDict = 13,
kPMValueTicket = 14
};
kPMValueUndefinedTemplate entry is unknown or undefined.
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h.
kPMValueBooleanA CFBoolean value.
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h.
kPMValueDataA CFData value. This is generic data converted to Core Foundation data. Template entries of this type should have a default value, but no other constraints.
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h.
kPMValueStringA CFString value. Template entries of this type should have a default value, but no other constraints.
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h.
kPMValueSInt32A CFNumber value.
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h.
kPMValueSInt32RangeA pair of CFNumber values (SInt32 data type).
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h.
kPMValueUInt32A CFNumber value (unsigned long data types).
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h.
kPMValueUInt32RangeA pair of CFNumber values (UInt32 values).
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h.
kPMValueDoubleA CFNumber value (double data type.)
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h.
kPMValueDoubleRangeA pair of CFNumber values (double data types).
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h.
kPMValuePMRectA Core Foundation array that contains four CFNumbers values (double data types).
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h.
kPMValueDateA CFDate value.
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h.
kPMValueArrayA Core Foundation array.
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h.
kPMValueDictA CFDictionary data structure. Template entries of this type should have a default value, but no other constraints.
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h.
kPMValueTicketA ticket.
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h.
A template entry data type determines what other fields and functions are available for the entry.
Define a string associated with a template.
#define kPMTemplatePrelude "com.apple.print.TemplateSpecific." #define kPMPaperInfoListStr "PMTemplatePaperInfoTicket" #define kPMPaperInfoList CFSTR( kPMPaperInfoListStr )
kPMTemplatePreludeA template prelude string.
kPMPaperInfoListStrA paper info list string.
kPMPaperInfoListA paper info list.
Specify the level of an item within a ticket.
enum {
kPMTopLevel = 0
};
You should pass the constant kPMTopLevel to any function that has parameters to specify ticket level calls. No other options are currently available.
Specify a ticket type, that is, a ticket kind.
typedef SInt16 PMTicketType;
enum {
kPMTicketTypeUnknown = -1,
kPMJobTicketType = 1,
kPMDocumentTicketType = 2,
kPMPageTicketType = 3,
kPMPageFormatTicketType = 4,
kPMPrintSettingsTicketType = 5,
kPMPrinterInfoTicketType = 6,
kPMDestinationTicketType = 7,
kPMConverterSetupTicketType = 8,
kPMModuleInfoTicketType = 9,
kPMTicketListType = 10,
kPMPaperInfoTicketType = 11
};
kPMTicketTypeUnknownSpecifies the ticket type is not know.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
kPMJobTicketTypeSpecifies a job ticket.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
kPMDocumentTicketTypeSpecifies a document ticket.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
kPMPageTicketTypeSpecifies a page ticket.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
kPMPageFormatTicketTypeSpecifies a page format ticket.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
kPMPrintSettingsTicketTypeSpecifies a print settings ticket.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
kPMPrinterInfoTicketTypeSpecifies a printer info ticket.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
kPMDestinationTicketTypeSpecifies a destination ticket.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
kPMConverterSetupTicketTypeSpecifies a converter setup ticket.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
kPMModuleInfoTicketTypeSpecifies a printer module info ticket.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
kPMTicketListTypeSpecifies a list ticket.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
kPMPaperInfoTicketTypeSpecifies a paper info ticket.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h.
Specify ticket types.
#define kPMJobTicket CFSTR("com.apple.print.JobTicket") #define kPMDocumentTicket CFSTR("com.apple.print.DocumentTicket") #define kPMPageTicket CFSTR("com.apple.print.PageTicket") #define kPMPageFormatTicket CFSTR("com.apple.print.PageFormatTicket") #define kPMPrintSettingsTicket CFSTR("com.apple.print.PrintSettingsTicket") #define kPMDestinationTicket CFSTR("com.apple.print.DestinationTicket") #define kPMConverterSetupTicket CFSTR("com.apple.print.ConverterSetupTicket") #define kPMPrinterInfoTicket CFSTR("com.apple.print.PrinterInfoTicket") #define kPMModuleInfoTicket CFSTR("com.apple.print.ModuleInfoTicket") #define kPMTicketList CFSTR("com.apple.print.TicketList") #define kPMPaperInfoTicket CFSTR("com.apple.print.PaperInfoTicket")
kPMJobTicketSpecifies a job ticket; the top-level ticket for a print job.
kPMDocumentTicketSpecifies a document ticket.
kPMPageTicketSpecifies a page ticket.
kPMPageFormatTicketSpecifies a page format ticket.
kPMPrintSettingsTicketSpecifies a print settings ticket.
kPMDestinationTicketSpecifies a destination ticket.
kPMConverterSetupTicketSpecifies a converter setup ticket.
kPMPrinterInfoTicketSpecifies a printer info ticket.
kPMModuleInfoTicketSpecifies a module info ticket.
kPMTicketListSpecifies a list ticket.
kPMPaperInfoTicketSpecifies a paper info ticket.
Use these ticket type strings of ticket types to create a ticket.
This table lists result codes defined for Ticket Services.
© 2002 Apple Computer, Inc. All Rights Reserved. (Last updated: 2002-10-23)