--> 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 1200C/PS Printer, and the HP
PaintJet XL300/PS Printer - Sample PostScript (TM) Level 1 files
ISSUE: Sample PostScript (TM) Level 1 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 filename other
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.
PostScript Functionality
%!
%!
% Use this file to verify PostScript functionality.
% It should print a page with a black border near the edge.
clippath stroke showpage
Envelope Printing with Envelope Feeder
%!
%!
% Use this file to show that an envelope prints in PostScript
on a
% LaserJet with an envelope feeder.
/Times-Roman findfont 14 scalefont setfont
statusdict begin
com10envelope
2 setpapertray
90 rotate
20 -30 moveto
(Return address 1st line) show
300 -150 moveto
(Send to address 1st line) show
showpage
Jam Recovery
%!
%!
% Use this file to turn jam-recovery on so that when the
% printer experiences a paper jam in PostScript,
% the job won't have to be sent again.
serverdict begin 0 exitserver
statusdict begin
true setdojamrecovery end
Legal Paper (Manual Feed)
%!
%!
% Use this file to verify that the PostScript printer
% will print a manually fed legal size sheet of paper.
statusdict begin /manualfeed true def legal end clippath
stroke showpage
Legal Paper (Cassette)
%!
%!
% Use this file to verify that the PostScript printer will
% print a legal size page with a legal size paper tray in the
% printer.
statusdict begin legaltray end clippath stroke showpage
Adjusting PostScript Wait Timeout
%!
%!
% Use this file to adjust the PostScript WAIT timeout
% (the time interval that the printer waits for more
information)
% if you are experiencing print jobs (especially graphics)
that
% don't finish printing, or that generate an error 16 on the
% printer, or that print an error page with the offending
command
% of -- timeout -- .
%
% The wait timeout can be set at 0 (which is infinity) or
from 15
% up to 255 seconds (for level 1 PostScript). The default is
40 seconds
% and is changed to 255 seconds below.
serverdict begin 0 exitserver
statusdict begin
0 60 255 setdefaulttimeouts end
Duplex Printing
%!
%!
% Use this file to verify that duplex (2-sided) printing
% works on a PostScript LaserJet that supports this feature.
statusdict begin
true setduplexmode
end clippath stroke showpage clippath stroke showpage
Extended PostScript Character
%!
%!
% Use this file to show that an extended PostScript character
% will print -- in this case #178 (accessed by holding [Alt]
% and typing 178 on Numeric Keypad - it's the character
% within the parentheses)
/NewCenturySchlbk-Roman findfont 24 scalefont setfont
100 100 moveto
(²) show
showpage
Printing Error Description Page
%!
%!
% Use this file to tell the PostScript printer to print an
error
% (description) page when the PostScript interpreter
encounters an error.
% Use this file if the printer acts as if it has received
information but
% doesn't print anything and eventually goes back to a ready
% state or stays "busy" forever.
serverdict begin 0 exitserver
statusdict begin
true setdoprinterrors end
% Replace true with false to turn off the printing of
PostScript Error pages.
Printing From a Specific Tray
%!
%!
% Use this file to verify that the PostScript printer can
pull
% a page from any installed tray in a multiple tray printer.
% For the IID,IIP,IIP plus,IIIP,IIID,IIISi the trays are as
follows:
% tray 0 = upper/multipurpose tray
% tray 1 = lower tray
% tray 2 = envelope feeder (if installed)
% For the LaserJet 4, trays are as follows:
% tray 0 = upper cassette
% tray 1 = lower cassette (optional high-capacity tray)
% tray 2 = envelope feeder (if installed)
% tray 3 = multipurpose tray
statusdict begin
1 setpapertray
end clippath stroke showpage
Sample of all Internal and Downloaded Fonts
%!
%!
% Use this file to print a sample of all internal
% and permanently downloaded PostScript fonts.
% Each font will print using its full PostScript name.
72 730 moveto
/s 30 string def
/crlf
{currentpoint exch pop 12.5 sub dup 36 le
{pop showpage 72 730 moveto}
{72 exch moveto}
ifelse
} def
FontDirectory {12 scalefont setfont s cvs show crlf}
forall showpage
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 juridictions.
Copyright Ó Hewlett-Packard Co. 1997
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