🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #4530

Re: SparcPrinter

#4530
From: Rich Berlin
Date: Wed, 23 Jan 1991 18:12
45 lines
2269 bytes
In article <9101222213.AA17502@msri.org>, rdong@MSRI.ORG (Rui-Tao Dong) writes:
|> 
|> 	We have a SparcPrinter installed recently. It is supposed to be
|> able to print at 300 dpi or 400 dpi. My first question is how do I use the
|> 400 dpi capability? I used dvips -D 400 to produce a PostScript file and
|> then sent it to the SparcPrinter by using lpr. The result was actually
|> worse than that at 300 dpi. I guess there should be an option to print it
|> at 400 dpi.

The resolution is switchable from PostScript.  There are a number
of ways to handle it; the common one is to print using PreLimn
instead of lpr, e.g.

% pl myfile.ps :resolution400

(To use PreLimn, you need to add the NeWSprint "bin" directory to your
path, and set up the PL_PATH enviroment variable so PreLimn can find
its filter hierarchy.  I'll have to refer you to the manual, as I am
not an expert on PreLimn.  But I think it can do some interesting
things for you, so let me make a quick "pitch:" If you work with TeX a
lot, you may want to take advantage of the customizability of PreLimn.
If you add the "magic number" for dvi files to /etc/magic and make a
"dvi" directory for PreLimn, you can teach it to automatically convert
dvi files for you and add the :resolution400 switch.)

The above command has the effect of "injecting" a small PostScript
fragment into your document before printing it; the fragment is

    /SetResolution {
	/setres where {
	    /setres get exec
	}{
	    pop
	} ifelse
    } def

    %%BeginFeature *SetResolution 400
    400 SetResolution
    %%EndFeature

Another option would be to modify dvi2ps so that if you specify -D400,
the above fragment is automatically output as part of the
DocumentSetup section of the output file.

-- Rich
Technical Details
Message-ID: <6470@exodus.Eng.Sun.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!exodus!birdland!rberlin
References: <9101222213.AA17502@msri.org>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!exodus!birdland!rberlin
From: rberlin@birdlandEng.Sun.COM (Rich Berlin)
Newsgroups: comp.lang.postscript
Subject: Re: SparcPrinter
Keywords: PostScript SparcPrinter TeX
Message-ID: <6470@exodus.Eng.Sun.COM>
Date: 23 Jan 91 18:12:09 GMT
References: <9101222213.AA17502@msri.org>
Sender: news@exodus.Eng.Sun.COM
Reply-To: rberlin@Eng.Sun.COM
Organization: Sun Microsystems
Lines: 45