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.h
Represents 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;
count
The number of CString
pointers in the array.
strArray
A 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;
count
The number of PMRect
pointers in the array.
pmRectArray
A 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; };
key
A string that uniquely identifies the item.
itemType
The type of item defined in the union.
locked
The lock state of the item.
value
The 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;
count
The number of signed 32-bit values in the array.
sInt32Array
A pointer to the array.
PMTicket.h
Defines 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)
kPMColorDeviceIDStr
The color device ID string.
kPMColorDeviceIDKey
The value of this key is a CFString
representing a CFUUID
; it must be unique per device.
kPMColorSyncProfilesStr
The ColorSync profiles sting.
kPMColorSyncProfilesKey
The 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 };
kPMConstraintUndefined
Values are not constrained.
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h
.
kPMConstraintRange
Values 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
.
kPMConstraintList
Values are constrained by an array.
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h
.
kPMConstraintPrivate
Values 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)
kPMConverterSetupPrelude
The converter-setup prelude sting.
kPMBandingRequestedStr
The banding-requested string.
kPMBandingRequestedKey
The value of this key is a CFBoolean
; turns banding on if it's available.
kPMRequiredBandHeightStr
The banding-height string.
kPMRequiredBandHeightKey
The 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.
kPMDepthSwitchingEnabledStr
The depth-switching-enabled string.
kPMDepthSwitchingEnabledKey
The 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.
kPMWhiteSkippingEnabledStr
The white-skipping-enabled string.
kPMWhiteSkippingEnabledKey
The value of this key is a CFBoolean
; true
specifies the printer module requests the converter to skip over white space if possible.
kPMConverterResHorizontalStr
The horizontal rendering resolution string.
kPMConverterResHorizontalKey
The value of this key is a CFNumber
of type CFNumberDoubleType
; specifies the final horizontal rendering resolution.
kPMConverterResVerticalStr
The vertical resolution string.
kPMConverterResVerticalKey
The value of this key is a CFNumber
of type CFNumberDoubleType
; specifies the final vertical rendering resolution.
kPMRequestedPixelFormatStr
The pixel format string.
kPMRequestedPixelFormatKey
The value of this key is a CFNumber
of type CFNumberLongType
; specifies the pixel format requested of the converter.
kPMRequestedPixelLayoutStr
The pixel layout string.
kPMRequestedPixelLayoutKey
The value of this key is a CFNumber
of type CFNumberLongType
; specifies the pixel layout requested of the converter.
kPMCVColorSyncProfileIDKey
The 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)
kPMIsBinaryOKStr
The binary is okay string.
kPMIsBinaryOKKey
The 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.
kPM8BitCommStr
The 8-bit communication string.
kPM8BitCommKey
The 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.
kPMTransparentCommStr
The transparent communication string.
kPMTransparentCommKey
The 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)
kPMDocumentTicketPrelude
Currently not used.
kPMSpoolFormatStr
Currently not used.
kPMSpoolFormatKey
Currently not used.
kPMPrinterModuleFormatStr
Currently not used.
kPMPrinterModuleFormatKey
Currently 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)
kPMPrinterSuggestedResStr
The suggested application drawing resolutions string.
kPMPrinterSuggestedResKey
The value of this key is the suggested application drawing resolutions key.
kPMPrinterMinResStr
The minimum drawing resolution string.
kPMPrinterMinResKey
The value of this key is the minimum range of resolutions for the printer; specified as a CFArray
of two CFNumber
values of type kCFNumberDoubleType
.
kPMPrinterMaxResStr
The maximum printer resolution string.
kPMPrinterMaxResKey
The 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 };
kPMDuplexNone
Don’t use duplex.
Available in Mac OS X v10.0 and later.
Declared in PMDefinitions.h
.
kPMDuplexNoTumble
Print 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
.
kPMDuplexTumble
Print 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
.
kPMSimplexTumble
Print 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
.
kPMDuplexDefault
Don’t use duplex; this option is the same as kPMDuplexNone
.
Specify whether or not an error handler is available.
enum { kPSNoErrorHandler = 0, kPSErrorHandler = 1 };
kPSNoErrorHandler
Specifies that an error handler is not available.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h
.
kPSErrorHandler
Specifies 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)
kPMInstallableOptionStr
The installable options string.
kPMInstallableOptionKey
The 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 };
kPMItemInvalidType
The type is not valid.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h
.
kPMItemCStringType
A C-style string pointer.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h
.
kPMItemSInt32Type
A signed 32-bit integer.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h
.
kPMItemBooleanType
A Boolean
value.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h
.
kPMItemCStrListType
A list of C-style strings
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h
.
kPMItemPMRectType
A pointer to a PMRect
data structure.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h
.
kPMItemSInt32ListType
A pointer to an SInt32List
data structure.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h
.
kPMItemPMRectListType
A 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)
kPMJobTicketPrelude
The job ticket prelude string.
kPMJobNameStr
The job name string.
kPMJobNameKey
The value of this key is a CFString
that specifies the name of the job to be displayed in the print queue dialog.
kPMApplicationNameStr
The application name string.
kPMApplicationNameKey
The value of this key is a CFString
that specifies the application's name.
kPMUserLanguageStr
The user language string.
kPMUserLanguageKey
The value of this key is a CFNumber
of type kCFNumberSInt32Type
.
kPMJobOwnerStr
The job owner string.
kPMJobOwnerKey
The value of this key is a CFString
that specifies the name of the user who submitted the job.
kPMJobTemplateStr
The job template string.
kPMJobTemplateKey
The value of this key is a CFDictionary
that is actually a PMTemplateRef
.
kPMPhaseStr
The printing phase string.
kPMPhaseKey
The value of this key is a CFNumber
of type kCFNumberSInt32Type
; specifies an enumeration—Spooling, RIPing, and so forth.
kPMOutputTypeStr
The output type string.
kPMOutputTypeKey
The 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 };
kPMUnlocked
Indicates items is unlocked.
Available in Mac OS X v10.2 and later.
Declared in PMDefinitions.h
.
kPMLocked
Indicates 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)
kPMTotalMemInstalledStr
The memory installed string.
kPMTotalMemInstalledKey
The value of this key is a CFNumber
of type kCFNumberSInt32Type
; specifies the memory installed in the printer.
kPMTotalMemAvailableStr
The total memory available string.
kPMTotalMemAvailableKey
The 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)
kPMPageFormatPrelude
The page format ticket prelude string.
kPMAdjustedPaperRectStr
The adjusted paper rectangle string.
kPMAdjustedPaperRectKey
The value of this key is a CFArray
of four CFNumbers
of type kCFNumberDoubleType
for the adjusted paper rectangle, in points.
kPMAdjustedPageRectStr
The adjusted page rectangle string.
kPMAdjustedPageRectKey
The value of this key is a CFArray
of four CFNumbers
of type kCFNumberDoubleType
for the adjusted page rectangle, in points.
kPMDrawingResHorizontalStr
The horizontal drawing resolution string.
kPMDrawingResHorizontalKey
The value of this key is a CFNumber
of type kCFNumberDoubleType
; the drawing resolution in horizontal direction.
kPMDrawingResVerticalStr
The vertical drawing resolution string.
kPMDrawingResVerticalKey
The value of this key is a CFNumber
of type kCFNumberDoubleType
; the drawing resolution in vertical direction.
kPMPageScalingHorizontalStr
The horizontal page scaling string.
PMPageScalingHorizontalKey
The value of this key is a CFNumber
of type kCFNumberDoubleType
; the horizontal scaling factor applied to original page size.
kPMPageScalingVerticalStr
The vertical page scaling string.
kPMPageScalingVerticalKey
The value of this key is a CFNumber
of type kCFNumberDoubleType
; the vertical scaling factor applied to original page size.
kPMPageOrientationStr
The page orientation string.
kPMPageOrientationKey
The value of this key is a CFNumber
of type kCFNumberSInt32Type
; PMOrientation
, 1 = portrait, 2 = landscape, 3 = reverse portrait, 4 = reverse landscape.
kPMPageBackupRecordHdlStr
The page backup record handle string.
kPMPageBackupRecordHdlKey
The value of this key is a print record handle (CFData
); not used when data is flattened. (Mac OS 8 and 9 only)
kPMPageBackupRecordDataStr
The page backup record data string.
kPMPageBackupRecordDataKey
The 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)
kPMPageCustomDialogHdlStr
The 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)
kPMFormattingPrinterStr
The formatting printer string.
kPMFormattingPrinterKey
The 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)
kPMPaperInfoPrelude
The paper info ticket prelude string.
kPMPaperNameStr
The paper name string.
kPMPaperNameKey
The paper name key specifies the name of the paper displayed in the user interface.
kPMUnadjustedPaperRectStr
The unadjusted paper rectangle string.
kPMUnadjustedPaperRectKey
The unadjusted paper rectangle key specifies the unadjusted paper rectangle.
kPMUnadjustedPageRectStr
The unadjusted page rectangle string.
kPMUnadjustedPageRectKey
The unadjusted page rectangle key specifies the unadjusted page rectangle.
kPMMatchPaperStr
The paper match string.
kPMMatchPaperKey
The 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 };
kPMPSTargetLanguageLevel2and3
Level 2 compatible, may take advantage of Level 3 features.
Available in Mac OS X v10.1 and later.
Declared in PMTicket.h
.
kPMPSTargetLanguageLevel1and2
Level 1 compatible, may take advantage of Lever 2 and 3 features.
Available in Mac OS X v10.1 and later.
Declared in PMTicket.h
.
kPMPSTargetLanguageLevelUnknown
Language level of target is unknown.
Available in Mac OS X v10.1 and later.
Declared in PMTicket.h
.
kPMPSTargetLanguageLevel1
Level 1.
Available in Mac OS X v10.1 and later.
Declared in PMTicket.h
.
kPMPSTargetLanguageLevel2
Level 2.
Available in Mac OS X v10.1 and later.
Declared in PMTicket.h
.
kPMPSTargetLanguageLevel3
Level 3.
Available in Mac OS X v10.1 and later.
Declared in PMTicket.h
.
kPMPSTargetLanguageLevelDefault
Same 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)
kPMDescriptionFileStr
The printer description file string.
kPMDescriptionFileKey
The value of this key is a CFString
; specifies the PostScript printer description file name or other description file.
kPMCompiledPPDStr
The compiled PostScript printer description string.
kPMCompiledPPDKey
The 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)
kPMPrinterIsPostScriptDriverStr
The PostScript printer driver string.
kPMPrinterIsPostScriptDriverKey
The 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)
kPMPrintSettingsPrelude
The print settings ticket prelude string.
kPMDestinationTypeStr
The destination type string.
kPMDestinationTypeKey
The value of this key is a CFNumber
of type kCFNumberSInt32Type
; can be kPMDestinationPrinter
, kPMDestinationFile
, or kPMDestinationFax
.
kPMOutputFilenameStr
The output filename string.
kPMOutputFilenameKey
The value of this key is a CFString
; a URL that specifies the output filename.
kPMCopiesStr
The copies string.
kPMCopiesKey
The value of this key is a CFNumber
of type kCFNumberSInt32Type
that specifies number of copies to print.
kPMCopyCollateStr
The copy/collate string.
kPMCopyCollateKey
The value of this key is a CFBoolean
value; used to turn collating on.
kPMReverseOrderStr
The reverse order string.
kPMReverseOrderKey
The value of this key is a CFBoolean
value; true
specifies to print sheets back to front. All layout options are unaffected by reverse order.
kPMPageRangeStr
The page range string.
kPMPageRangeKey
The value of this key is a CFArray
of type kCFNumberSInt32Type
; indicates valid range of pages that the application is able to print.
kPMFirstPageStr
The first page string.
kPMFirstPageKey
The value of this key is a CFNumber
of type kCFNumberSInt32Type
; the first page selected by user to print.
kPMLastPageStr
The last page string.
kPMLastPageKey
The value of this key is a CFNumber
of type kCFNumberSInt32Type
; the last page selected by user to print.
kPMBorderStr
The border string.
kPMBorderKey
The value of this key is a CFBoolean
; true
specifies to use borders.
kPMBorderTypeStr
The border type string.
kPMBorderTypeKey
The value of this key is a CFNumber
of type kCFNumberSInt32Type
; specifies an enumeration (PMBorderType
).
kPMLayoutNUpStr
The layout string.
kPMLayoutNUpKey
The value of this key is a CFBoolean
value; turns N-Up layout on.
kPMLayoutRowsStr
The layout rows string.
kPMLayoutRowsKey
The value of this key is a CFNumber
of type kCFNumberSInt32Type
; indicates number of layout rows.
kPMLayoutColumnsStr
The layout columns string.
kPMLayoutColumnsKey
The value of this key is a CFNumber
of type kCFNumberSInt32Type
; indicates number of layout columns.
kPMLayoutDirectionStr
The layout direction string.
kPMLayoutDirectionKey
The value of this key is a CFNumber
of type kCFNumberSInt32Type
; specifies an enumeration (PMLayoutDirection
).
kPMLayoutTileOrientationStr
The layout tile orientation string.
kPMLayoutTileOrientationKey
The value of this key is a CFNumber
of type kCFNumberSInt32Type
; PMOrientation
, 1 = portrait, 2 = landscape, etc.
kPMQualityStr
The print quality string.
kPMQualityKey
The value of this key is a CFNumber
of type kCFNumberSInt32Type
; specfies an enumeration—draft, normal, best.
kPMPaperTypeStr
The paper type string.
kPMPaperTypeKey
The value of this key is a CFNumber
of type kCFNumberSInt32Type
.
kPMJobStateStr
The job state string.
kPMJobStateKey
The value of this key is a CFNumber
of type kCFNumberSInt32Type
; specifies an enumeration—active = 0, pending, hold until, hold indefinitely, aborted, finished.
kPMJobHoldUntilTimeStr
The job hold until string.
kPMJobHoldUntilTimeKey
The value of this key is a CFDate
; specifies time to print the job.
kPMJobPriorityStr
The job priority string.
kPMJobPriorityKey
The value of this key is a CFNumber
of type kCFNumberSInt32Type
; specifies an enumeration—Low = 0, normal, urgent.
kPMPaperSourceStr
The paper source string.
kPMPaperSourceKey
The value of this key is a CFNumber
of type kCFNumberSInt32Type
; specifies an enumeration of paper sources.
kPMDuplexingStr
The duplexing string.
kPMDuplexingKey
The value of this key is a CFNumber
of type kCFNumberSInt32Type
; specifies an enumeration—kPMDuplexNone
, kPMDuplexNoTumble
, kPMDuplexTumble
, kPMSimplexTumble
.
kPMColorModeStr
The color mode string.
kPMColorModeKey
The value of this key is a CFNumber
of type kCFNumberSInt32Type
; specifies an enumeration—Black and White, Grayscale, Color, HiFi Color.
kPMColorSyncProfileIDStr
The ColorSync Profile ID string.
kPMColorSyncProfileIDKey
The value of this key is a CFNumber
of type kCFNumberSInt32Type
; specifies the ID of the ColorSync profile to use.
kPMColorSyncSystemProfilePathStr
The ColorSync system profile path string.
kPMColorSyncSystemProfilePathKey
The value of this key is a CFString
; specifies the path of system profile.
kPMPrintScalingHorizontalStr
The horizontal print scaling string.
kPMPrintScalingHorizontalKey
The value of this key is a CFNumber
of type kCFNumberDoubleType
; specifies the horizontal scaling factor applied to original page size.
kPMPrintScalingVerticalStr
The vertical print scaling string.
kPMPrintScalingVerticalKey
The value of this key is a CFNumber
of type kCFNumberDoubleType
; specifies the vertical scaling factor applied to original page size.
kPMPrintScalingAlignmentStr
The print scaling alignment string.
kPMPrintScalingAlignmentKey
The value of this key is a CFNumber
of type kCFNumberSInt32Type
; specifies an enumeration (PMScalingAlignment
).
kPMPrintOrientationStr
The print orientation string.
kPMPrintOrientationKey
The value of this key is a CFNumber
of type kCFNumberSInt32Type
; specifies and enumeration—PMOrientation
, 1 = portrait, 2 = landscape, etc.
kPMPreviewStr
The print preview string.
kPMPreviewKey
The value of this key is a CFString
; “YES” indicates the user clicked the Preview button.
kPMPrintBackupRecordHdlStr
The print backup record handle string.
kPMPrintBackupRecordHdlKey
The value of this key is a print record handle (CFData
); not used when data is flattened. (Mac OS 8 and 9 only)
kPMPrintBackupRecordDataStr
The print backup record data string.
kPMPrintBackupRecordDataKey
The 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)
kPMPrintCustomDialogHdlStr
The print custom dialog handle string.
kPMPrintCustomDialogHdlKey
The 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)
kPMPrimaryPaperFeedStr
The primary paper feed string.
kPMPrimaryPaperFeedKey
The value of this key is a CFArray
; the main and option PPD keywords for input paper feed.
kPMSecondaryPaperFeedStr
The secondary paper feed string.
kPMSecondaryPaperFeedKey
The value of this key is a CFArray
; the main and option PPD keywords for input paper feed.
kPMPSErrorHandlerStr
The PostScript error handle string.
kPMPSErrorHandlerKey
The value of this key is a CFNumber
of type kCFNumberSInt32Type
.
kPMPSErrorOnScreenStr
The PostScript error on screen string.
kPMPSErrorOnScreenKey
The value of this key is a CFBoolean
; turns PostScript error onscreen notification on.
kPMPSTraySwitchStr
The PostScript tray switch string.
kPMPSTraySwitchKey
The value of this key is a CFArray
; the main and option PostScript printer description file keywords for tray switching.
kPMPPDDictStr
The PostScript printer description file string.
kPMPPDDictKey
The 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)
kPMDriverCreatorStr
The printer driver creator string.
kPMDriverCreatorKey
The 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)
kPMPrinterFontStr
The printer font string.
kPMPrinterFontKey
The 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)
kPMPrinterInfoPrelude
The printer info ticket prelude string.
kPMPrinterLongNameStr
The printer long name string.
kPMPrinterLongNameKey
The value of this key is a CFString
; specifies the full name of the printer.
kPMPrinterShortNameStr
The printer short name string.
kPMPrinterShortNameKey
The value of this key is a CFString
; specifies a shortened version of the printer name.
kPMMakeAndModelNameStr
The printer make and model string.
kPMMakeAndModelNameKey
The value of this key is a CFString
; specifies the product name used for the printer
kPMPrinterAddressStr
The printer address string.
kPMPrinterAddressKey
The value of this key is the product address (CFData
).
kPMSupportsColorStr
The color supported string.
kPMSupportsColorKey
The value of this key is a CFBoolean
; true
if the printer supports color printing.
kPMDoesCopiesStr
The copies string.
kPMDoesCopiesKey
The value of this key is a CFBoolean
; true
if the printer supports copies.
kPMDoesCopyCollateStr
The collation string.
kPMDoesCopyCollateKey
The value of this key is a CFBoolean
; true
if the printer supports collation.
kPMDoesReverseOrderStr
The reverse-order string.
kPMDoesReverseOrderKey
The value of this key is a CFBoolean
; true
if the printer can print in reverse order.
kPMInputFileTypeListStr
The file type list string.
kPMInputFileTypeListKey
The value of this key is a CFArray
of CFString
data that indicates file types.
kPMOutputTypeListStr
The output type list string.
kPMOutputTypeListKey
The 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 };
kPMPhaseUnknown
Phase unknown.
Available in Mac OS X v10.0 through Mac OS X v10.4.
Declared in PMTicket.h
.
kPMPhasePreDialog
Just before the code to open the dialog.
Available in Mac OS X v10.0 through Mac OS X v10.4.
Declared in PMTicket.h
.
kPMPhaseDialogsUp
A printing dialogs is open.
Available in Mac OS X v10.0 through Mac OS X v10.4.
Declared in PMTicket.h
.
kPMPhasePostDialogs
The 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
.
kPMPhasePreAppDrawing
The job is just about to spool.
Available in Mac OS X v10.0 through Mac OS X v10.4.
Declared in PMTicket.h
.
kPMPhaseAppDrawing
Drawing 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
.
kPMPhasePostAppDrawing
Spooling 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
.
kPMPhasePreConversion
The 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
.
kPMPhaseConverting
The 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
.
kPMPhasePostConversion
The 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
.
kPMPhasePrinting
The 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 };
kPMPSTTRasterizerUnknown
Rasterizer unknown.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h
.
kPMPSTTRasterizerNone
No rasterizer.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h
.
kPMPSTTRasterizerAccept68K
Accepts 68 K.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h
.
kPMPSTTRasterizerType42
Uses 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 };
kPMValueUndefined
Template entry is unknown or undefined.
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h
.
kPMValueBoolean
A CFBoolean
value.
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h
.
kPMValueData
A 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
.
kPMValueString
A 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
.
kPMValueSInt32
A CFNumber
value.
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h
.
kPMValueSInt32Range
A pair of CFNumber
values (SInt32
data type).
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h
.
kPMValueUInt32
A CFNumber
value (unsigned long data types).
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h
.
kPMValueUInt32Range
A pair of CFNumber
values (UInt32
values).
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h
.
kPMValueDouble
A CFNumber
value (double
data type.)
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h
.
kPMValueDoubleRange
A pair of CFNumber
values (double
data types).
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h
.
kPMValuePMRect
A Core Foundation array that contains four CFNumbers
values (double
data types).
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h
.
kPMValueDate
A CFDate
value.
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h
.
kPMValueArray
A Core Foundation array.
Available in Mac OS X v10.0 and later.
Declared in PMTemplate.h
.
kPMValueDict
A 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
.
kPMValueTicket
A 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 )
kPMTemplatePrelude
A template prelude string.
kPMPaperInfoListStr
A paper info list string.
kPMPaperInfoList
A 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 };
kPMTicketTypeUnknown
Specifies the ticket type is not know.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h
.
kPMJobTicketType
Specifies a job ticket.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h
.
kPMDocumentTicketType
Specifies a document ticket.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h
.
kPMPageTicketType
Specifies a page ticket.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h
.
kPMPageFormatTicketType
Specifies a page format ticket.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h
.
kPMPrintSettingsTicketType
Specifies a print settings ticket.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h
.
kPMPrinterInfoTicketType
Specifies a printer info ticket.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h
.
kPMDestinationTicketType
Specifies a destination ticket.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h
.
kPMConverterSetupTicketType
Specifies a converter setup ticket.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h
.
kPMModuleInfoTicketType
Specifies a printer module info ticket.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h
.
kPMTicketListType
Specifies a list ticket.
Available in Mac OS X v10.0 and later.
Declared in PMTicket.h
.
kPMPaperInfoTicketType
Specifies 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")
kPMJobTicket
Specifies a job ticket; the top-level ticket for a print job.
kPMDocumentTicket
Specifies a document ticket.
kPMPageTicket
Specifies a page ticket.
kPMPageFormatTicket
Specifies a page format ticket.
kPMPrintSettingsTicket
Specifies a print settings ticket.
kPMDestinationTicket
Specifies a destination ticket.
kPMConverterSetupTicket
Specifies a converter setup ticket.
kPMPrinterInfoTicket
Specifies a printer info ticket.
kPMModuleInfoTicket
Specifies a module info ticket.
kPMTicketList
Specifies a list ticket.
kPMPaperInfoTicket
Specifies 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)