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