Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!i2unix!inria!loria!tombre From: tombre@crin.fr (Karl Tombre) Newsgroups: comp.sources.wanted Subject: Re: 2 pages/physical page in Postscript ? [SUMMARY OF RESPONSES] Message-ID: Date: 13 Aug 90 10:20:58 GMT References: Sender: news@loria.crin.fr Distribution: comp Organization: INRIA Lorraine, Nancy, France Lines: 127 In-reply-to: tombre@crin.fr's message of 9 Aug 90 13:42:21 GMT >>>>> In article , I wrote: KT> Is there something like a program able to take a postscript file KT> and modify it so that 2 (logical) pages are printed on one physical KT> page, i.e. in landscape format, reduced fonts etc. ??? KT> I'm thinking of some general filter which might as well be put at the KT> output of some dvi2ps or any other text-to-prostscript filter (program KT> prettyprinters especially) KT> Please mail me if you know of such a program. Thanks in advance, Thanks to everybody who answered my request. Here is a summary of the responses I got. I think I will start with having a look at psnup... ------------------------------ Several people (Nick Holloway (alfie@cs.warwick.ac.uk), Steve Rumsby , Glenn M. Lewis Bill Stapleton ), suggested that I look at psnup, written by Ned Batchelder . It can print 2, 4, 8 or 16 logical pages on a physical page. Nick Holloway (alfie@cs.warwick.ac.uk) has written a shell script wrapper, and a manual page to go with it. Here is the manual page (thank you, Nick). +++++++++++ PSNUP(1) USER COMMANDS PSNUP(1) NAME psnup - print n logical pages on each physical page SYNOPSIS psnup [ -r ] [ -n pages ] [ -s start ] [ files ... ] DESCRIPTION psnup alters PostScript input so that n logical pages are printed on each physical page. This can be useful for view- ing the general layout of a document on fewer pages. For example: psroff -t -ms doc.ms | psnup -n 16 | lpr -PPostScript For printing plain text files, you need to convert them to PostScript format first. For example, using enscript(1): enscript -l -p - | psnup | lpr -PPostScript OPTIONS -r start printing in the bottom right corner, rather than the top left corner. This is useful for input that has been page reversed. -npages on each physical page print pages logical pages. pages must be one of 2, 4, 8, or 16. The default is 2. -sstart specify where the first page will start. This value must be in the range 0 to pages-1. This can be thought of the number of pages to skip before starting print- ing. The default is 0. FILES /cs/share/lib/psnup/nup.pro psnup prologue file /cs/share/lib/psnup/nup.epi psnup epilogue file SEE ALSO psroff(1), enscript(1), psrev(1). DIAGNOSTICS Hopefully self explanatory! BUGS If the input is page reversed, the start spot has to be given for the first page to finish up in the top left spot. e.g. if input consisted of 7 pages in reverse order, to be printed 8 up, the start spot would have to 1, otherwise there would be a blank page in the top left corner, rather than the bottom right. The output is not Adobe conforming PostScript, and so output will not be page reversed when printed. ++++++++++++ Bill Stapleton provided a copy of an article in comp.lang.postscript, where Roy Smith wrote: RS> Ftp to goober.phri.nyu.edu and grab ~ftp/pub/misc/psnup.tar.Z. It RS> does almost exactly what you want; takes a PS file and prints it n-up, RS> where n is 2, 4, 8, or 16. Sorry, no 6-up. Non-powers-of-2-up starts to RS> get tricky, since the page aspect ratios don't work out right. Ned RS> Batchelder wrote psnup, I just repackaged it a little. RS> RS> I have also heard of something called "Save A Tree" which prints RS> mac text files 2-up or 4-up. I've never used it, but is sounds good. RS> According to the information I have, you can grab ~ftp/pub/SaveATree.hqx RS> from thylacine.cs.wisc.edu (128.105.1.208) ---------------------------- Alan Butcher (ab@cerc.wvu.wvnet.edu) writes: A program called mpage was posted to comp.sources.misc. Might try it. Here is the header from the posting. Posting-number: Volume 9, Issue 88 Submitted-by: mark@pyrdc.UUCP (Mark Hahn) Archive-name: mpage/part01 Mpage will print text or Postscript input in n-up format. I.e. 4 pages of normal text or postscript is reduced to fit on one sheet of paper (4-up). Choices are 1, 2, 4, 8, and 16 pages per sheet of paper with 2 and 4 being most useful and readable. It accepts Postscript as input, or at least it works on most of the stuff I get from the Adobe File Server. ------------------------------------------ Georges Buffet reminded me that enscript also has this capability when you want to output text files (enscript -2r). -- Karl Tombre - INRIA Lorraine / CRIN EMAIL : tombre@loria.crin.fr - POST : BP 239, 54506 VANDOEUVRE CEDEX, France