home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / next / sysadmin / 5028 next >
Encoding:
Text File  |  1992-09-07  |  3.1 KB  |  78 lines

  1. Newsgroups: comp.sys.next.sysadmin
  2. Path: 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
  3. From: blommer@euler.eecs.umich.edu (Michael Alan Blommer)
  4. Subject: Re: how to print file in normal order
  5. Message-ID: <1992Sep4.210851.1258@zip.eecs.umich.edu>
  6. Sender: news@zip.eecs.umich.edu (Mr. News)
  7. Organization: University of Michigan EECS Dept., Ann Arbor, MI
  8. References: <POK.92Sep4111044@gabriel.ccs.yorku.ca>
  9. Distribution: comp.sys.next.sysadmin
  10. Date: Fri, 4 Sep 1992 21:08:51 GMT
  11. Lines: 65
  12.  
  13. In article <POK.92Sep4111044@gabriel.ccs.yorku.ca> pok@gabriel.ccs.yorku.ca  
  14. (Pok Ng) writes:
  15. > Hi,
  16. >     Does anyone know how to set up the NeXT so that it WIIL NOT  generate 
  17. > postscript file with pages in reverse-order(ie I want first page first  
  18. instead of
  19. > last page first)?
  20. > thanks
  21. > /pok
  22.  
  23. I asked this question awhile back, and got the following response:
  24.  
  25. ------------------------------------------------------
  26. In article <1992Aug17.150405.6011@zip.eecs.umich.edu>  
  27. blommer@euler.eecs.umich.edu (Michael Alan Blommer) writes:
  28. # This may be a FAQ, but I have not found the answer anywhere.  Does anyone now  
  29. # how to reverse the order in which the NeXT printer prints out pages?  That  
  30. is,  
  31. # how can I make so that the printer begins printing with the first page of a  
  32. # document instead of the last page of a document?
  33. # Thanks in advance,
  34. # Mike
  35. # blommer@engin.umich.edu
  36.  
  37. If it is I couldn't find it with Librarian.
  38.  
  39. I use /usr/lib/transcript/psrev in a shell script as the output filter in the  
  40. queue.  psrev accepts POSTSCRIPT input on its stdin, reverses the page order  
  41. and places the output on its stdout.
  42.  
  43. --
  44.    __     _             _            Colin Wu
  45.   /  )   //            ' )   /       Network Analyst
  46.  /    __|/  o ____      / / / . .    Computing & Information Services
  47. (__/ (_) \_<_/ / <_    (_(_/ (_/_    McMaster University
  48. email:    wucolin@popeye.CIS.McMaster.CA    (NeXTmail welcome)
  49.     wucolin@McMaster.CA        (Generic email only)
  50. --------------------------------------------------------------
  51.  
  52. Here's an example that I used to test this method, and it works (thanks Colin):
  53. First I used the Preview option in the print panel to create a .ps file.  For  
  54. the example it created the file /tmp/.preview760088.ps.  Then in a shell, I  
  55. used the psrev command
  56.  
  57. % psrev /tmp/.preview760088.ps | lpr -P zwicker_printer
  58.  
  59. zwicker_printer is the name of the printer used to print the stuff out.  See  
  60. the man pages for more info. and capabilities regarding psrev.
  61.  
  62. Now for the good news.  I looked around the documentation for printing in 3.0  
  63. (beta release) and it turns out that things CAN be printed in reverse order (in  
  64. 3.0).  The print panel is very similar to that in 2.1, but to print stuff in  
  65. reverse order, you just use the "From" option in Pages and enter "last" in the  
  66. "From" field and enter "first" in the "To" field.  It worked with a document I  
  67. printed from a machine with 3.0 on it, but it doesn't work in 2.1.  So if you  
  68. can wait for 3.0, everything should be much easier.
  69.  
  70.  
  71. Mike Blommer
  72. blommer@eecs.umich.edu
  73. (NeXT mail welcome)
  74.