Share via


GDI Printer Escape Functions

The following printer escape functions are used with the Escape or ExtEscape functions.

In this section

Function Description

CHECKJPEGFORMAT Printer Escape

The CHECKJPEGFORMAT printer escape function determines whether a printer supports printing a JPEG image.

To perform this check, call the ExtEscape function with the following parameters.

CHECKPNGFORMAT Printer Escape

The CHECKPNGFORMAT printer escape function determines whether a printer supports printing a PNG image.

To perform this check, call the ExtEscape function with the following parameters.

DRAWPATTERNRECT Printer Escape

The DRAWPATTERNRECT printer escape creates a white, gray scale, 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 gray scale is a gray pattern that contains a specific mixture of black and white pixels.

To perform this operation, call the ExtEscape function with the following parameters.

GET_PS_FEATURESETTING Printer Escape

The GET_PS_FEATURESETTING printer escape function retrieves information about a specified feature setting for a PostScript driver.

This escape function is supported only if the PostScript driver is in PostScript-centric mode or in GDI-centric mode. To set the PostScript driver mode, call the POSTSCRIPT_IDENTIFY escape function.

To perform this operation, call the ExtEscape function with the following parameters.

GETTECHNOLOGY Printer Escape

The GETTECHNOLOGY printer escape function identifies the type of printer driver.

To perform this operation, call the ExtEscape function with the following parameters.

PASSTHROUGH Printer Escape

The PASSTHROUGH printer escape function sends data directly to a printer driver. To perform this operation, call the ExtEscape function with the following parameters.

POSTSCRIPT_DATA Printer Escape

The POSTSCRIPT_DATA printer escape function sends data directly to a printer driver. To perform this operation, call the ExtEscape function with the following parameters.

POSTSCRIPT_IDENTIFY Printer Escape

The POSTSCRIPT_IDENTIFY printer escape function sets a PostScript driver to GDI-centric mode or PostScript-centric mode.

To perform this operation, call the ExtEscape function with the following parameters.

POSTSCRIPT_INJECTION Printer Escape

The POSTSCRIPT_INJECTION printer escape function inserts a block of raw data at a specified point in a PostScript job stream.

A PostScript driver supports this escape function in GDI-centric mode or PostScript-centric mode support, but not in compatibility mode.

To set the PostScript driver's mode, call the POSTSCRIPT_IDENTIFY escape function.

To perform this operation, call the ExtEscape function with the following parameters.

POSTSCRIPT_PASSTHROUGH Printer Escape

The POSTSCRIPT_PASSTHROUGH printer escape function sends data directly to a PostScript printer driver.

A PostScript driver supports this escape function when in PostScript-centric mode or in compatibility mode, but not in GDI-centric mode.

To set the PostScript driver's mode, call the POSTSCRIPT_IDENTIFY escape function.

To perform this operation, call the ExtEscape function with the following parameters.

QUERYESCSUPPORT Printer Escape

The QUERYESCSUPPORT printer escape function checks the implementation of a printer escape function.

SPCLPASSTHROUGH2 Printer Escape

The SPCLPASSTHROUGH2 printer escape function allows applications that print to PostScript devices using EPSPRINTING to include private PostScript procedures and other resources at the document-level save context.

This escape is supported only for backward compatibility with Adobe Acrobat. Other applications should not use this obsolete escape.

To perform this operation, call the ExtEscape function with the following parameters.