PSINJECTDATA structure

The PSINJECTDATA structure is a header for the input buffer used with the POSTSCRIPT_INJECTION printer escape function.

Syntax


typedef struct _PSINJECTDATA {
  DWORD DataBytes;
  WORD  InjectionPoint;
  WORD  PageNumber;
} PSINJECTDATA, *PPSINJECTDATA;

Members

DataBytes

The number of bytes of raw data to be injected. The raw data begins immediately following this structure. This size does not include the size of the PSINJECTDATA structure.

InjectionPoint

Specifies where to inject the raw data in the PostScript output. This member can be one of the following values.

ValueMeaning
PSINJECT_BEGINSTREAMBefore the first byte of job stream.
PSINJECT_PSADOBEBefore %!PS-Adobe.
PSINJECT_PAGESATENDReplaces driver's %%Pages (atend).
PSINJECT_PAGESReplaces driver's %%Pages nnn.
PSINJECT_DOCNEEDEDRESAfter %%DocumentNeededResources.
PSINJECT_DOCSUPPLIEDRESAfter %%DocumentSuppliedResources.
PSINJECT_PAGEORDERReplaces driver's %%PageOrder.
PSINJECT_ORIENTATIONReplaces driver's %%Orientation.
PSINJECT_BOUNDINGBOXReplaces driver's %%BoundingBox.
PSINJECT_DOCUMENTPROCESSCOLORSReplaces driver's %%DocumentProcessColors <color>.
PSINJECT_COMMENTSBefore %%EndComments.
PSINJECT_BEGINDEFAULTSAfter %%BeginDefaults.
PSINJECT_ENDDEFAULTSBefore %%EndDefaults.
PSINJECT_BEGINPROLOGAfter %%BeginProlog.
PSINJECT_ENDPROLOGBefore %%EndProlog.
PSINJECT_BEGINSETUPAfter %%BeginSetup.
PSINJECT_ENDSETUPBefore %%EndSetup.
PSINJECT_TRAILERAfter %%Trailer
PSINJECT_EOFAfter %%EOF
PSINJECT_ENDSTREAMAfter the last byte of job stream
PSINJECT_DOCUMENTPROCESSCOLORSATENDReplaces driver's %%DocumentProcessColors (atend)
Page level injection points
PSINJECT_PAGENUMBERReplaces driver's %%Page
PSINJECT_BEGINPAGESETUPAfter %%BeginPageSetup
PSINJECT_ENDPAGESETUPBefore %%EndPageSetup
PSINJECT_PAGETRAILERAfter %%PageTrailer
PSINJECT_PLATECOLORReplace driver's %%PlateColor: <color>
PSINJECT_SHOWPAGEBefore showpage operator
PSINJECT_PAGEBBOXReplaces driver's %%PageBoundingBox
PSINJECT_ENDPAGECOMMENTSBefore %%EndPageComments
PSINJECT_VMSAVEBefore save operator
PSINJECT_VMRESTOREAfter restore operator

 

PageNumber

The page number (starting from 1) to which the injection data is applied. Specify zero to apply the injection data to all pages. This member is meaningful only for page level injection points starting from PSINJECT_PAGENUMBER. For other injection points, set PageNumber to zero.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Wingdi.h (include Windows.h)

See also

Printing
Print Spooler API Structures
POSTSCRIPT_INJECTION

 

 

Show: