Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problem with convert from ps to pcl

0 views
Skip to first unread message

hehehe

unread,
Nov 30, 2009, 3:38:01 AM11/30/09
to
Hello!

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

ken

unread,
Nov 30, 2009, 6:41:55 AM11/30/09
to
In article <hf009a$2fnd$1...@news2.ipartners.pl>, m...@m.ccc says...

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

ken

unread,
Nov 30, 2009, 6:56:02 AM11/30/09
to
In article <MPG.257dbfcbf...@usenet.plus.net>, k...@spamcop.net
says...

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

0 new messages