PostScript Injection Dictionary Keys
Specify the location and type of information to be inserted in the PostScript output stream.
#define kPSInjectionSectionKey CFSTR("section")
#define kPSInjectionSubSectionKey CFSTR("subsection")
#define kPSInjectionPageKey CFSTR("page")
#define kPSInjectionPlacementKey CFSTR("place")
#define kPSInjectionPostScriptKey CFSTR("psdata")
Constant descriptions
-
kPSInjectionSectionKey
-
Specifies the section in the PostScript output stream where your code will be inserted. This key is optional. If not specified, its value defaults to
kInjectionSectJob
. See "PostScript Injection Section Key Constants"for more information.
-
kPSInjectionSubSectionKey
-
Specifies the subsection in the PostScript output stream where your code will be inserted. This key is required. See "PostScript Injection Subsection Key Constants" for a list of constants you can pass in this key.
-
kPSInjectionPageKey
-
Specifies the number of the page that this dictionary applies to. If the
kPSInjectionSubSectionKey
value does not apply to a particular page (for example,
kInjectionSubPSAdobe
), then this entry is ignored. If the value of this entry is
kPSPageInjectAllPages
(-1) or the key is not present, then this entry applies to all pages.
-
kPSInjectionPlacementKey
-
Specifies the relative location to insert your PostScript code within the subsection. Your code can be inserted before or after the standard PostScript output for the specified subsection, or your code can replace the standard output entirely. This key is required. See "PostScript Injection Placement Key Constants" for a list constants you can pass in this key.
-
kPSInjectionPostScriptKey
-
This key contains the PostScript code or data to be inserted, which you provide in a
CFData
object. This key is required.
Discussion
You use these constants to create an array of
CFDictionary
entries containing PostScript code and data that you pass to the PMSessionSetPSInjectionData function.
© 2000 Apple Computer, Inc. (Last Updated 13 July 00)