| 1 |
.TH PSNUP 1 "PSUtils" |
| 2 |
.SH NAME |
| 3 |
psnup \- multiple pages per sheet |
| 4 |
.SH SYNOPSIS |
| 5 |
.B psnup |
| 6 |
.RB [ \-w\fIwidth\fR ] |
| 7 |
.RB [ \-h\fIheight\fR ] |
| 8 |
.RB [ \-p\fIpaper\fR ] |
| 9 |
.RB [ \-W\fIwidth\fR ] |
| 10 |
.RB [ \-H\fIheight\fR ] |
| 11 |
.RB [ \-P\fIpaper\fR ] |
| 12 |
.RB [ \-l | \-r | \-f ] |
| 13 |
.RB [ \-c ] |
| 14 |
.RB [ \-m\fImargin\fR ] |
| 15 |
.RB [ \-b\fIborder\fR ] |
| 16 |
.RB [ \-d [ \fIlwidth\fR ]] |
| 17 |
.RB [ \-s\fIscale\fR ] |
| 18 |
.RB [ \-\fInup\fR ] |
| 19 |
.RB [ \-q ] |
| 20 |
.RI [ infile |
| 21 |
.RI [ outfile ]] |
| 22 |
.SH DESCRIPTION |
| 23 |
.B Psnup |
| 24 |
puts multiple logical pages onto each physical sheet of paper. |
| 25 |
The input PostScript file should follow the Adobe Document Structuring |
| 26 |
Conventions. |
| 27 |
.PP |
| 28 |
The |
| 29 |
.B \-w |
| 30 |
option gives the paper width, and the |
| 31 |
.B \-h |
| 32 |
option gives the paper height, specified in |
| 33 |
.BR pt , |
| 34 |
.BR mm , |
| 35 |
.BR cm , |
| 36 |
or |
| 37 |
.BR in . |
| 38 |
The |
| 39 |
.B \-p |
| 40 |
option can be used instead, to set the paper size; otherwise a default value is used. |
| 41 |
See |
| 42 |
.BR paper (1). |
| 43 |
The |
| 44 |
.BR \-W , |
| 45 |
.BR \-H , |
| 46 |
and |
| 47 |
.B \-P |
| 48 |
options set the input paper size, if it is different from the output |
| 49 |
size. This makes it easy to impose pages of one size on a different size of |
| 50 |
paper. |
| 51 |
.PP |
| 52 |
The |
| 53 |
.B \-l |
| 54 |
option should be used for pages which are in landscape orientation (rotated 90 |
| 55 |
degrees anticlockwise). The |
| 56 |
.B \-r |
| 57 |
option should be used for pages which are in seascape orientation (rotated 90 |
| 58 |
degrees clockwise), and the |
| 59 |
.B \-f |
| 60 |
option should be used for pages which have the width and height interchanged, |
| 61 |
but are not rotated. |
| 62 |
.PP |
| 63 |
.B Psnup |
| 64 |
normally uses `row-major' layout, where adjacent pages are placed in rows |
| 65 |
across the paper. |
| 66 |
The |
| 67 |
.B \-c |
| 68 |
option changes the order to `column-major', where successive pages are placed |
| 69 |
in columns down the paper. |
| 70 |
.PP |
| 71 |
A margin to leave around the whole page can be specified with the |
| 72 |
.B \-m |
| 73 |
option. This is useful for sheets of `thumbnail' pages, because the normal |
| 74 |
page margins are reduced by putting multiple pages on a single sheet. |
| 75 |
.PP |
| 76 |
The |
| 77 |
.B \-b |
| 78 |
option is used to specify an additional margin around each page on a sheet. |
| 79 |
.PP |
| 80 |
The |
| 81 |
.B \-d |
| 82 |
option draws a line around the border of each page, of the specified width. |
| 83 |
If the \fIlwidth\fR parameter is omitted, a default linewidth of 1 point is |
| 84 |
assumed. The linewidth is relative to the original page dimensions, |
| 85 |
i.e., it is scaled down with the rest of the page. |
| 86 |
.PP |
| 87 |
The scale chosen by |
| 88 |
.B psnup |
| 89 |
can be overridden with the |
| 90 |
.B \-s |
| 91 |
option. This is useful to merge pages which are already reduced. |
| 92 |
.PP |
| 93 |
The |
| 94 |
.BI \- nup |
| 95 |
option selects the number of logical pages to put on each sheet of paper. This |
| 96 |
can be any whole number; |
| 97 |
.B psnup |
| 98 |
tries to optimise the layout so that the minimum amount of space is wasted. If |
| 99 |
.B psnup |
| 100 |
cannot find a layout within its tolerance limit, it will abort with an error |
| 101 |
message. The alternative form |
| 102 |
.BI \-n nup |
| 103 |
can also be used, for compatibility with other n-up programs. |
| 104 |
.PP |
| 105 |
.B Psnup |
| 106 |
normally prints the page numbers of the pages re-arranged; the |
| 107 |
.B \-q |
| 108 |
option suppresses this. |
| 109 |
.SH EXAMPLES |
| 110 |
The potential use of this utility is varied but one particular |
| 111 |
use is in conjunction with |
| 112 |
.BR psbook (1). |
| 113 |
For example, using groff to create a PostScript document and lpr as |
| 114 |
the |
| 115 |
.SM UNIX |
| 116 |
print spooler a typical command line might look like this: |
| 117 |
.sp |
| 118 |
groff -Tps -ms \fIfile\fP | psbook | psnup -2 | lpr |
| 119 |
.sp |
| 120 |
where file is a 4 page document this command will result in a |
| 121 |
two page document printing two pages of \fIfile\fP per page and |
| 122 |
rearranges the page order to match the input pages 4 and 1 |
| 123 |
on the first output page and |
| 124 |
pages 2 then 3 of the input document |
| 125 |
on the second output page. |
| 126 |
.SH AUTHOR |
| 127 |
Written by Angus J. C. Duggan. |
| 128 |
.SH "SEE ALSO" |
| 129 |
.Br psutils (1) |
| 130 |
.SH TRADEMARKS |
| 131 |
.B PostScript |
| 132 |
is a trademark of Adobe Systems Incorporated. |
| 133 |
.SH BUGS |
| 134 |
.B Psnup |
| 135 |
does not accept all DSC comments. |