Thread View: comp.lang.postscript
3 messages
3 total messages
Started by Bernhard Malle
Mon, 25 Jan 1993 09:34
{(%%[|0|]%%)=print flush}
Author: Bernhard Malle
Date: Mon, 25 Jan 1993 09:34
Date: Mon, 25 Jan 1993 09:34
23 lines
1308 bytes
1308 bytes
Hello,
Is there any PostScript Guru that knows the meaning of the following
statement:
{(%%[|0|]%%)=print flush}
This statement appears in some Macintosh-Postscript-files, that I have
created by printing a Macintosh-document to a file instaed of
printing it directly. I'm not sure, whether this statement is the reason for
my troubles, but since the moment, I have included these Postscript-files
into my LaTeX-document via psfig (after using m2u and pslinewrap and bbfig),
our printer can't print more than 3 pages at a time. (error message is something
like illegal restore).
The interesting thing about the above mentioned statement is, that ghostview can
display the diagrams correctly, but sends an error message with just
%%[|0|]%%
Does anyone knows how to avoid this command?
Bernhard
malle@rpksun4.mach.uni-karlsruhe.de
Re: {(%%[|0|]%%)=print flush}
Author: Jan van der Steen
Date: Mon, 25 Jan 1993 13:25
Date: Mon, 25 Jan 1993 13:25
47 lines
2345 bytes
2345 bytes
malle@rpksun1.mach.uni-karlsruhe.de (Bernhard Malle) writes:
> Is there any PostScript Guru that knows the meaning of the following
> statement:
>
> {(%%[|0|]%%)=print flush}
It translates to:
print the string "%%[|0|]%%" on stdout channel and flush that channel
This is the usual way to pass information to the host which transmitted
the PostScript file. The idea in this case is to keep track on the host
about the progress of the print job. This way the Macintosh spooling
software can inform you about the number of pages printed. The same
channel is used to transmit PostScript errors back to the host.
> this statement appears in some Macintosh-Postscript-files, that I have
> created by printing a Macintosh-document to a file instaed of printing
> it directly. I'm not sure, whether this statement is the reason for my
> troubles, but since the moment, I have included these Postscript-files
> into my LaTeX-document via psfig (after using m2u and pslinewrap and
> bbfig), our printer can't print more than 3 pages at a time. (error
> message is something like illegal restore).
Problems with Macintosh PostScript printed on non-laserwriters is not
uncommon unfortunately. The above print statement however is unlikely
to be harmful unless your printer spooler tries to interpret it and
draws wrong conclusions from it. Deleting it (see below) will tell.
As a side note: once I ambitiously started to disassemble the prolog of
the Macintosh PostScript trying to lay my finger on some problems we'd
encountered. But I had to give up this project due to lack of time.
Did anyone do a similar analysis and achieved results too?
>Does anyone knows how to avoid this command?
Just delete everything in between "{" and "}".
Jan van der Steen
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Jan van der Steen jansteen@cwi.nl
Centre for Mathematics and Computer Science (CWI)
Kruislaan 413, 1098 SJ Amsterdam, The Netherlands
Re: {(%%[|0|]%%)=print flush}
Author: Allen B
Date: Mon, 25 Jan 1993 15:42
Date: Mon, 25 Jan 1993 15:42
36 lines
1258 bytes
1258 bytes
In article <1k0c7bINN9gj@nz12.rz.uni-karlsruhe.de>
malle@rpksun1.mach.uni-karlsruhe.de (Bernhard Malle) writes:
> Hello,
>
> Is there any PostScript Guru that knows the meaning of the following
> statement:
> {(%%[|0|]%%)=print flush}
Sure. =print prints that string, and then flush makes
sure you see it.
=print is defined here on my NeXT to be:
{
dup type /stringtype ne {
=string cvs
} if
print
}
Like =string, =print isn't documented. In this case, you
could use print just as well.
> The interesting thing about the above mentioned statement is, that ghostview
can
> display the diagrams correctly, but sends an error message with just
> %%[|0|]%%
Yep.
> Does anyone knows how to avoid this command?
Just take it out. If you aren't watching the output
channel, you won't see it anyway.
ab
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads