Pscript-Supported Escapes
Collapse the table of content
Expand the table of content

Pscript-Supported Escapes

The Pscript5 printer driver supports the following escapes.

EscapeMeaning

BEGIN_PATH

Open a path.

CHECKJPEGFORMAT

Determine whether a printer can handle a JPEG image. For more information about this escape, see CHECKJPEGFORMAT in the Microsoft Windows SDK documentation.

This escape produces a call to the DrvQueryDeviceSupport function.

CHECKPNGFORMAT

Determine whether a printer can handle a PNG image. For more information about this escape, see CHECKPNGFORMAT in the Windows SDK documentation.

This escape produces a call to the DrvQueryDeviceSupport function.

CLIP_TO_PATH

Define a clip region that is bounded by a path.

DOWNLOADHEADER

Download all of the procsets (that is, sets of PostScript procedures).

DRAWPATTERNRECT

Create a white, grayscale, or solid black rectangle by using the pattern and rule capabilities of Page Control Language (PCL) on Hewlett Packard LaserJet or LaserJet-compatible printers. A grayscale is a gray pattern that contains a specific mixture of black and white pixels. For more information about this escape, see DRAWPATTERNRECT in the Windows SDK documentation.

This escape is associated with the driver's DrvEscape function.

ENCAPSULATED_POSTSCRIPT

Send Encapsulated PostScript (EPS) data to the printer.

This escape is not supported in Microsoft Windows NT 4.0 printer drivers.

This escape is associated with the driver's DrvDrawEscape function.

END_PATH

End a path.

EPSPRINTING

Indicate the start or end of EPS printing.

The graphics device interface (GDI) intercepts this escape and translates it to a DDI call other than DrvEscape. The printer driver does not receive this escape.

GET_PS_FEATURESETTING

Get information about a specified feature setting for a PostScript driver.

For more information about this escape, see GET_PS_FEATURESETTING in the Windows SDK documentation.

GETTECHNOLOGY

Get the general technology type for a printer. Printer drivers that are written for versions of the Windows operating system after Windows 3.0 might not support this escape.

PASSTHROUGH

Send data directly to a PostScript printer driver in compatibility mode or GDI-centric mode. PostScript printer drivers in PostScript-centric mode do not support this escape.

For more information about this escape, see PASSTHROUGH in the Windows SDK documentation.

POSTSCRIPT_DATA

Send data directly to a printer driver. This escape is identical to the PASSTHROUGH escape except that PostScript printer drivers support this escape in Windows NT 4.0 compatibility mode only.

For more information about this escape, see POSTSCRIPT_DATA in the Windows SDK documentation.

POSTSCRIPT_IDENTIFY

Set a PostScript printer driver to GDI-centric or PostScript-centric mode.

For more information about this escape, see POSTSCRIPT_IDENTIFY in the Windows SDK documentation.

POSTSCRIPT_IGNORE

Suppress output.

Only PostScript printer drivers in Windows NT 4.0 compatibility mode or in GDI-centric mode support this escape. PostScript printer drivers in PostScript-centric mode do not support this escape.

POSTSCRIPT_INJECTION

Insert a block of raw data in a PostScript job stream.

For more information about this escape, see POSTSCRIPT_INJECTION in the Windows SDK documentation.

POSTSCRIPT_PASSTHROUGH

Send data directly to a PostScript printer driver in Windows NT 4.0 compatibility mode or PostScript-centric mode. PostScript printer drivers in GDI-centric mode do not support this escape.

For more information about this escape, see POSTSCRIPT_PASSTHROUGH in the Windows SDK documentation.

QUERYESCSUPPORT

Determine whether the device driver implements a particular escape.

For more information about this escape, see QUERYESCSUPPORT in the Windows SDK documentation.

SETCOPYCOUNT

Set the number of copies to be printed.

This escape has been superseded by the DocumentProperties and PrinterProperties functions, which are described in the Windows SDK documentation.

For more information about this escape, see SETCOPYCOUNT in the Windows SDK documentation.

SPCLPASSTHROUGH2

Enable applications to include private procedures and other resources at the document level-save context.

For more information about this escape, see SPCLPASSTHROUGH2 in the Windows SDK documentation.

 

The following escapes were added in Windows NT 4.0 but are no longer supported:

  • ADDMSTT

  • IGNORESTARTPAGE

  • NOFIRSTSAVE

The following escapes are obsolete and provided only for compatibility with 16-bit versions of the Windows operating system.

EscapeComments

ABORTDOC

This escape has been superseded by the AbortDoc function, which is described in the Windows SDK documentation.

ENDDOC

This escape has been superseded by the EndDoc function, which is described in the Windows SDK documentation.

GETPHYSPAGESIZE

This escape has been superseded by the PHYSICALWIDTH and PHYSICALHEIGHT values in the GetDeviceCaps function, which is described in the Windows SDK documentation.

GETPRINTINGOFFSET

This escape has been superseded by the PHYSICALOFFSETX and PHYSICALOFFSETY values in the GetDeviceCaps function, which is described in the Windows SDK documentation.

GETSCALINGFACTOR

This escape has been superseded by the SCALINGFACTORX and SCALINGFACTORY values in the GetDeviceCaps function, which is described in the Windows SDK documentation.

NEWFRAME

This escape has been superseded by the EndPage function, which ends a page. Unlike NEWFRAME, EndPage is always called after printing a page. EndPage is described in the Windows SDK documentation.

NEXTBAND

Band information is no longer used.

SETABORTPROC

This escape has been superseded by the SetAbortProc function, which is described in the Windows SDK documentation.

SETCOPYCOUNT

This escape has been superseded by the DocumentProperties and PrinterProperties functions, which are described in the Windows SDK documentation.

STARTDOC

This escape has been superseded by the StartDoc function, which is described in the Windows SDK documentation.

 

 

 

Send comments about this topic to Microsoft

Show:
© 2016 Microsoft