🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #4725

Re: Wanted: PS program to clear printer's memory

#4725
From: Mark Zellers
Date: Sun, 10 Feb 1991 03:09
32 lines
1490 bytes
In article <2668@sparko.gwu.edu> timur@seas.gwu.edu () writes:
>
>I'm looking for a postscript program that will reset the printer and
>clear all of it's memory (i.e. remove fonts and any resident programs).
>I don't know the first thing about PS programming (and neither does
>anyone on the staff), so I have to ask here.
>
A little known, undocumented trick to be able to remove things from the
printers memory:

*** Prior to downloading your fonts and resident programs:


		%!
		serverdict begin 0 exitserver
		/MagicCookie save def


*** Then, to remove anything downloaded since the initial download:

		%!
		serverdict begin 0 exitserver
		MagicCookie restore
		/MagicCookie save def

The trade off in using this technique is that it uses up one of the
available save levels.  This is generally not a problem, since few
PostScript programs use all of the available levels, but it is something
that you may want to be aware of.

Mark H. Zellers
decwrl.dec.com!voltaire!bwayne!mark
Technical Details
Message-ID: <1991Feb10.030920.22299@starnet.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!mrspoc!starnet!mzellers
References: <2668@sparko.gwu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!mrspoc!starnet!mzellers
From: mzellers@starnet.uucp (Mark Zellers)
Newsgroups: comp.lang.postscript
Subject: Re: Wanted: PS program to clear printer's memory
Message-ID: <1991Feb10.030920.22299@starnet.uucp>
Date: 10 Feb 91 03:09:20 GMT
References: <2668@sparko.gwu.edu>
Reply-To: mzellers@starnet.UUCP (Mark Zellers)
Organization: Starnet Connections---Public Access UNIX
Lines: 32