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
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