I have some problem with my converting script from ps to pcl. The problem
is with that two line in file :
()SW pop 0 exch sub 0 div 0
() ASH
whet is the meening of this two lines?
Regards - MJ
PostScript is a programming language, sending two lines from the middle
of the program is not going to be sufficient for anyone to tell you what
they do. You haven't supplied the code containing the definition of the
/SW or /ASH procedures.
'Probably' they relate to rendering text, since they both appear to be
taking (empty) strings as an argument, but this is only a guess. SW
might be a 'stringwidth' operation, espeically since the code following
it appears to be manipulating a numeric result. ASH 'might' be an
'ashow' operation.
You haven't said what application you are using, nor what the errors you
are encountering are, nor do you say if you haev tried rendering the
PostScript directly instead of converting it to PCL. Its entirely
possible the original PostScript file is broken and doesn't work at all.
FWIW the code :
'0 exch sub'
will subtract 0 from a number (fairly pointless) and then:
'0 div'
will divide that number by zero, which I would expect to produce a
'divide by zero' error.
So it looks to me like your PostScript file is broken.
Ken
> '0 exch sub'
>
> will subtract 0 from a number (fairly pointless) and then:
Actually that will subtract a number *from* 0, thereby negating it, not
quite so pointless ;-)
Ken