Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

offending command: E ?

Status
Not open for further replies.

Hemo

Programmer
Apr 9, 2003
190
US
I have a very simple postscript file that I use to 'test' a print if it can print postscript. It simply prints 5mm graph paper.

When I send this file to a known postscript capable HP LaserJet 4M, I get the nothing unless I tur on printing of PS Errors, then I get a single page output with the following:
<code>
ERROR: undefined
OFFENDING COMMAND: E

STACK:
</code>

The code that I am sending:
<code>
%!PS-Adobe
%%Title: 5mm spaced graph
%%Creator: Graph_5mm.ps
%%LanguageLevel: 1
%%Orientation: Portrait
%%Version: 1.00
%%EndComments

%
/heol 594 def
/veol 777.5 def
% draw horizontal lines 5mm apart
/xstart 13 def
/ystart 13 def
.1 setgray
[14.173 14.173] 0 setdash
54 { xstart ystart moveto heol ystart lineto 0.2 setlinewidth stroke
/ystart ystart 14.173 add def} repeat
% draw vertical lines 5mm apart
/xstart 13 def
/ystart 13 def
42 { xstart ystart moveto xstart veol lineto 0.2 setlinewidth stroke
/xstart xstart 14.173 add def} repeat
showpage
%%EOF
</code>

I even stripped out all the comments, leaving just %PS-Adobe at the beginning of the file, same results.

The printer has 12MB memory, I was passing the file direct from a unix host. The printer is connected to a TCP/IP network and a windows client with a 'HP4 PS Driver' was able to print, though I just don't trust that it was really sending postscript code in raw mode, since that is what I am doing and I get nothing.

Any thoughts what this error could be?

----
Hemo
 
The program is correct.
I think that the pronter need some control commands. If you can print to this printer from any othe application try to save the print stream to a file and check the content.

Your PostScript expert is just a click away.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top