--> Hewlett-Packard Customer Care - Small Top Banner Hewlett-Packard homepage Hewlett-Packard Customer Care homepage Hewlett-Packard Support Guide Service Locator Talk To Hewlett-Packard Take Our Survey [INLINE] [INLINE] [INLINE] HP LaserJet 4 Family Printers, HP DeskJet C/PS printer, and the HP PaintJet XL300/PS printer - Sample PostScript (TM) Level 2 files ISSUE: Sample PostScript (TM) Level 2 files on the HP LaserJet 4 family, HP DeskJet 1200C/PS, and the HP PaintJet XL300/PS printers. SOLUTION: Once communication with the printer has been established, these files can be used to verify PostScript capability or features on Hewlett-Packard printers. The files can be copied character by character when creating your own file and should work as is. Additionally, lines which start with '%' (not '%!') are comment lines and may be omitted. The following example shows how to create a file using the DOS copy con utility. All programs in this document should follow the outline of this example. NOTE: Anything shown within '[ ]' is an instruction to press that key. C:\>copy con clippath (or some other filenameother than clippath) [Enter] %![Enter] %![Enter] clippath stroke showpage [Ctrl] [D] (then) [Ctrl][Z] [Enter] (make sure the printer is in PostScript mode and then:) C:\>copy clippath LPT1 (or the port that the printer is attached to) [Enter] NOTE: The [Ctrl] [D] is an end of job command for PostScript. This command should be at the end of the PostScript sample programs. The [Ctrl] [Z] is the copy con command to close the file and should also be at the end of each sample program. The following sample PostScript files are common to the HP LaserJet 4 printer family of printers. Code that is unique to each printer will follow: HP LaserJet 4 family Printer Manual Feed Legal Page Size % Manual Feed Legal Page Size % %!PS-Adobe <> setpagedevice clippath stroke showpage %follow the program with a ctrl-d character Printing Errors % Print Errors % % To enable the printer to print an error page % if it encounters an error condition % % To disable it, substitute the word "false" for "true" % %!PS-Adobe <> setsystemparams %follow the program with a ctrl-d character Wait Timeout % Wait Timeout % % Values you can use: % 0 (zero; this sets it to infinite, NOT recommended) % 15 - 4095 seconds (255 is the limit for Level 1) % %!PS-Adobe <> setsystemparams %follow the program with a ctrl-d character hp LaserJet 4/4M or 4Si/4Si MX printers Letter Size Paper % Letter Page Size % % If LaserJet printer does not pull from the correct slot, % verify that you have the installed option (e.g., envelope feeder) and % the front panel is set correct (e.g., Paper=Letter (if you are trying % to print a letter size page and MP TRAY=LETTER) % % REPLACE % <> setpagedevice % WITH the correct settings that follow: % Multipurpose tray = (MP CASSETTE) 4/4M only % Paper Cassette (tray closest to MP tray) = (UPPER CASSETTE) 4/4M only % Upper Cassette = (UPPER CASSETTE) 4Si/4SiMX only % Lower Cassette (Large Capacity, 500 sheet tray) = (LOWER CASSETTE) 4/4M % only % Lower Cassette = (LOWER CASSETTE) 4Si/4SiMX only % Envelope Feeder = (ENVELOPE FEEDER) 4/4M, 4Si/4SiMX only % %!PS-Adobe <>>> setpagedevice <> setpagedevice clippath stroke showpage %follow the program with a ctrl-d character hp LaserJet 4 Plus/4M Plus or 4V/4MV printers Tray Selection % To pull from the correct cassette, replace the /MediaPosition value % with the appropriate value from below: % % Multipurpose Tray (top tray) = 3 4 Plus/4M Plus, 4V/4MV % Paper Cassette (tray closest to the Multipurpose Tray) = 0 (zero) 4 Plus/4M Plus, 4V/4MV % Lower Cassette (optional 500 sheet tray) = 1 4 Plus/4M Plus, 4V/4MV % Envelope feeder = 2 (4 Plus/4M Plus) % %!PS-Adobe <> setpagedevice <> setpagedevice clippath stroke showpage %follow the program with a ctrl-d character NOTE: The information provided in the above documentation is specific to PostScript commands relating to the printer, such as paper tray selection. It is NOT meant to provide technical documentation about the PostScript Language in general. Adobe (TM) is a trademark of Adobe Systems Incorporated which may be registered in certain jurisdictions. PostScript (TM) is a trademark of Adobe Systems Incorporated which may be registered in certain jurisdictions. Copyright Ó Hewlett-Packard Co. 1996 This information is subject to change without notice and is provided "as is" with no warranty. Hewlett-Packard shall not be liable for any direct, indirect, special, incidental or consequential damages in connection with the use of this material. Hewlett-Packard Customer Care - Bottom Banner