🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.sysadmin
Article #622

Re: how to print file in normal order

#622
From: Michael Alan Blommer
Date: Fri, 04 Sep 1992 21:08
65 lines
3258 bytes
In article <POK.92Sep4111044@gabriel.ccs.yorku.ca> pok@gabriel.ccs.yorku.ca  
(Pok Ng) writes:
> Hi,
> 
> 	Does anyone know how to set up the NeXT so that it WIIL NOT  generate 
> postscript file with pages in reverse-order(ie I want first page first  
instead of
> last page first)?
> 
> 
> thanks
> /pok

I asked this question awhile back, and got the following response:

------------------------------------------------------
In article <1992Aug17.150405.6011@zip.eecs.umich.edu>  
blommer@euler.eecs.umich.edu (Michael Alan Blommer) writes:
# This may be a FAQ, but I have not found the answer anywhere.  Does anyone now  
# how to reverse the order in which the NeXT printer prints out pages?  That  
is,  
# how can I make so that the printer begins printing with the first page of a  
# document instead of the last page of a document?
# 
# Thanks in advance,
# Mike
# blommer@engin.umich.edu

If it is I couldn't find it with Librarian.

I use /usr/lib/transcript/psrev in a shell script as the output filter in the  
queue.  psrev accepts POSTSCRIPT input on its stdin, reverses the page order  
and places the output on its stdout.

--
   __     _             _            Colin Wu
  /  )   //            ' )   /       Network Analyst
 /    __|/  o ____      / / / . .    Computing & Information Services
(__/ (_) \_<_/ / <_    (_(_/ (_/_    McMaster University
email:	wucolin@popeye.CIS.McMaster.CA	(NeXTmail welcome)
	wucolin@McMaster.CA		(Generic email only)
--------------------------------------------------------------

Here's an example that I used to test this method, and it works (thanks Colin):
First I used the Preview option in the print panel to create a .ps file.  For  
the example it created the file /tmp/.preview760088.ps.  Then in a shell, I  
used the psrev command

% psrev /tmp/.preview760088.ps | lpr -P zwicker_printer

zwicker_printer is the name of the printer used to print the stuff out.  See  
the man pages for more info. and capabilities regarding psrev.

Now for the good news.  I looked around the documentation for printing in 3.0  
(beta release) and it turns out that things CAN be printed in reverse order (in  
3.0).  The print panel is very similar to that in 2.1, but to print stuff in  
reverse order, you just use the "From" option in Pages and enter "last" in the  
"From" field and enter "first" in the "To" field.  It worked with a document I  
printed from a machine with 3.0 on it, but it doesn't work in 2.1.  So if you  
can wait for 3.0, everything should be much easier.


Mike Blommer
blommer@eecs.umich.edu
(NeXT mail welcome)
Technical Details
Message-ID: <1992Sep4.210851.1258@zip.eecs.umich.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!aplcen.apl.jhu.edu!uakari.primate.wisc.edu!caen!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!umeecs!news
References: <POK.92Sep4111044@gabriel.ccs.yorku.ca>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.sysadmin
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!aplcen.apl.jhu.edu!uakari.primate.wisc.edu!caen!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!umeecs!news
From: blommer@euler.eecs.umich.edu (Michael Alan Blommer)
Subject: Re: how to print file in normal order
Message-ID: <1992Sep4.210851.1258@zip.eecs.umich.edu>
Sender: news@zip.eecs.umich.edu (Mr. News)
Organization: University of Michigan EECS Dept., Ann Arbor, MI
References: <POK.92Sep4111044@gabriel.ccs.yorku.ca>
Distribution: comp.sys.next.sysadmin
Date: Fri, 4 Sep 1992 21:08:51 GMT
Lines: 65