The following information is provided as is, and the authors take no responsibility for the correctness.

Printer Escape Functions

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

ID Printer escape function Driver Description
1NEWFRAME
2ABORTDOC
3NEXTBAND
4SETCOLORTABLE
5GETCOLORTABLE
6FLUSHOUTPUT
7DRAFTMODE
8QUERYESCSUPPORT
9SETABORTPROC
10STARTDOC
11ENDDOC
12GETPHYSPAGESIZE
13GETPRINTINGOFFSET
14GETSCALINGFACTOR
15MFCOMMENT
16GETPENWIDTH
17SETCOPYCOUNT
18SELECTPAPERSOURCE
19DEVICEDATA
19PASSTHROUGH Sends data directly to a printer driver in compatibility mode or GDI-centric mode.
20GETTECHNOLOGY For non-XPSDrv printers: Reports on whether or not the driver is a Postscript driver. For XPSDrv printers: Reports on whether or not the driver is the Microsoft XPS Document Converter (MXDC). If it is, the escape returns the zero-terminated string “http://schemas.microsoft.com/xps/2005/06“.
25DRAWPATTERNRECT Create a white, grayscale, or solid black rectangle by using the pattern and rule capabilities of Page Control Language. A grayscale is a gray pattern that contains a specific mixture of black and white pixels.
33EPSPRINTING 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.
37POSTSCRIPT_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.
38POSTSCRIPT_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.
42GETDEVICEUNITS
-
256GETEXTENDEDTEXTMETRICS
257GETEXTENTTABLE
258GETPAIRKERNTABLE
259GETTRACKKERNTABLE
512EXTTEXTOUT
513GETFACENAME
514DOWNLOADFACE
768ENABLERELATIVEWIDTHS
769ENABLEPAIRKERNING
770SETKERNTRACK
771SETALLJUSTVALUES
772SETCHARSET
-
2048STRETCHBLT
2049METAFILE_DRIVER
-
3072GETSETSCREENPARAMS
3073QUERYDIBSUPPORT
-
4096BEGIN_PATH Open a path.
4097CLIP_TO_PATH Define a clip region that is bounded by a path.
4098END_PATH End a path.
4099EXT_DEVICE_CAPS
4100RESTORE_CTM
4101SAVE_CTM
4102SET_ARC_DIRECTION
4103SET_BACKGROUND_COLOR
4104SET_POLY_MODE
4105SET_SCREEN_ANGLE
4106SET_SPREAD
4107TRANSFORM_CTM
4108SET_CLIP_BOX
4109SET_BOUNDS
4110SET_MIRROR_MODE
4110OPENCHANNEL The OPENCHANNEL escape will prevent the PostScript language printer driver from downloading a PostScript language header to the printer.
4111DOWNLOADHEADER Download all of the procsets (that is, sets of PostScript procedures).
4112CLOSECHANNEL
4115POSTSCRIPT_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.
4116ENCAPSULATED_POSTSCRIPT Windows 2000/XP: Send Encapsulated PostScript (EPS) data to the printer.
4117POSTSCRIPT_IDENTIFY NT5 pscript Windows 2000/XP: Sets a PostScript driver to GDI-centric or PostScript-centric mode.
4118POSTSCRIPT_INJECTION NT5 pscript Windows 2000/XP: Inserts a block of raw data in a PostScript job stream.
4119CHECKJPEGFORMAT Windows 2000/XP: Checks whether the printer supports a JPEG image.
This escape produces a call to the DrvQueryDeviceSupport function.
4120CHECKPNGFORMAT Windows 2000/XP: Checks whether the printer supports a PNG image.
This escape produces a call to the DrvQueryDeviceSupport function.
4121GET_PS_FEATURESETTING NT5 pscript Windows 2000/XP: Gets information on a specified feature setting for a PostScript driver.
4568SPCLPASSTHROUGH2 NT5 pscript Windows 2000/XP: Allows applications to include private procedures and other resources at the document level-save context.
MXDC_ESCAPE Windows Vista: Enables applications to write documents to a file or to a printer in XML Paper Specificaton (XPS) format by means of the Microsoft XPS Document Converter (MSDC).

 
winspool/printer_escape_functions.txt · Last modified: 2007/11/26 14:17 by christoph
 

All text is available under the terms of the GNU Free Documentation License (see Copyrights for details). Disclaimers

Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki