summaryrefslogtreecommitdiffstats
path: root/upstream/archlinux/man1/pstops.1
diff options
context:
space:
mode:
Diffstat (limited to 'upstream/archlinux/man1/pstops.1')
-rw-r--r--upstream/archlinux/man1/pstops.1144
1 files changed, 63 insertions, 81 deletions
diff --git a/upstream/archlinux/man1/pstops.1 b/upstream/archlinux/man1/pstops.1
index db3dae68..7f1d6ba7 100644
--- a/upstream/archlinux/man1/pstops.1
+++ b/upstream/archlinux/man1/pstops.1
@@ -1,77 +1,73 @@
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.1.
-.TH PSTOPS "1" "February 2023" "pstops 2.10" "User Commands"
+.TH PSPDFUTILS "1" "2024\-04\-08" "pspdfutils 3.3.2" "User Commands"
.SH NAME
-pstops - rearrange pages of a PostScript document
+pspdfutils
.SH SYNOPSIS
-.B pstops
-[\fI\,OPTION\/\fR...] [\fI\,INFILE \/\fR[\fI\,OUTFILE\/\fR]]
+.B pspdfutils
+[OPTION...] [INFILE [OUTFILE]]
.SH DESCRIPTION
-Rearrange pages of a PostScript document.
-.PP
-The input PostScript file should follow the Adobe Document Structuring
+Rearrange pages of a PDF or PostScript document.
+PostScript files should follow the Adobe Document Structuring
Conventions.
.PP
.I Pstops
can be used to perform arbitrary re-arrangements of documents. For many tasks,
it is simpler to use the other utilities in the PSUtils suite: see
.BR psutils (1).
+
+.TP
+\fBINFILE\fR
+`\-' or no INFILE argument means standard input
+
.TP
-\fB\-S\fR, \fB\-\-specs\fR=\fI\,SPECS\/\fR
+\fBOUTFILE\fR
+`\-' or no OUTFILE argument means standard output
+
+.SH OPTIONS
+.TP
+\fB\-S\fR \fI\,SPECS\/\fR, \fB\-\-specs\fR \fI\,SPECS\/\fR
page specifications (see below)
+
.TP
-\fB\-R\fR, \fB\-\-pages\fR=\fI\,PAGES\/\fR
+\fB\-R\fR \fI\,PAGERANGE\/\fR, \fB\-\-pages\fR \fI\,PAGERANGE\/\fR
select the given page ranges
+
.TP
\fB\-e\fR, \fB\-\-even\fR
select even\-numbered output pages
+
.TP
\fB\-o\fR, \fB\-\-odd\fR
select odd\-numbered output pages
+
.TP
\fB\-r\fR, \fB\-\-reverse\fR
reverse the order of the output pages
+
.TP
-\fB\-p\fR, \fB\-\-paper\fR=\fI\,PAPER\/\fR
+\fB\-p\fR \fI\,PAPER\/\fR, \fB\-\-paper\fR \fI\,PAPER\/\fR
output paper name or dimensions (WIDTHxHEIGHT)
+
.TP
-\fB\-P\fR, \fB\-\-inpaper\fR=\fI\,PAPER\/\fR
+\fB\-P\fR \fI\,INPAPER\/\fR, \fB\-\-inpaper\fR \fI\,INPAPER\/\fR
input paper name or dimensions (WIDTHxHEIGHT)
+
.TP
-\fB\-d\fR, \fB\-\-draw\fR[=\fI\,DIMENSION\/\fR]
+\fB\-d\fR \fI\,[DIMENSION]\/\fR, \fB\-\-draw\fR \fI\,[DIMENSION]\/\fR
draw a line of given width (relative to original
-page) around each page [argument defaults to 1;
-default is 0]
+page) around each page [argument defaults to 1pt;
+default is no line; width is fixed for PDF]
+
.TP
-\fB\-b\fR, \fB\-\-nobind\fR
-disable PostScript bind operators in prolog;
-may be needed for complex page rearrangements
+\fB\-v\fR, \fB\-\-version\fR
+show program's version number and exit
+
.TP
\fB\-q\fR, \fB\-\-quiet\fR
-don't show page numbers being output
-.TP
-\fB\-\-help\fR
-display this help and exit
-.TP
-\fB\-v\fR, \fB\-\-version\fR
-display version information and exit
-.PP
+don't show progress
+
+.SH COMMENTS
PAGES is a comma\-separated list of pages and page ranges.
-.PP
-Each may be a page number, or a page range of the form
-.IB first \- last .
-If
-.I first
-is omitted, the first page is assumed, and if
-.I last
-is omitted, the last page is assumed.
-The prefix character \[oq]_\[cq] indicates that the page number is relative to the end
-of the document, counting backwards.
-If just this character with no page number is used, a blank page will be
-inserted.
-Page numbers refer to the pages as they occur in the file, starting
-at one.
-The actual page number in the document may be different.
-.PP
+
SPECS is a list of page specifications [default is "0", which selects
each page in its normal order].
.PP
@@ -88,13 +84,9 @@ Pagespecs have the following syntax:
.TP
.I spec
=
-.RB [ - ] \fIpageno\fP [\fIturns\fP][ @\fIscale\fP ][ ( \fIxoff\fP , \fIyoff\fP ) ]
+.RB [ - ] \fIpageno\fP [\fItransform...\fP][ @\fIscale\fP ][ ( \fIxoff\fP , \fIyoff\fP ) ]
.TP
-.I turns
-=
-.IR turn [ turns ]
-.TP
-.I turn
+.I transform
=
.BR L | R | U | H | V
.RE
@@ -130,20 +122,20 @@ or followed by
.B "w"
or
.B "h"
-to indicate a multiple of the output paper width or height.
+to indicate a multiple of the output page width or height.
.PP
-The optional parameters
+The optional transformations
.BR L ,
.BR R ,
.BR U ,
.BR H ,
and
.B V
-rotate the page left, right, or upside-down, and flip (mirror) the page
-horizontally or vertically respectively.
+rotate the page left, right, or upside-down around its lower left corner,
+and flip (mirror) the page horizontally or vertically respectively.
The optional
.I scale
-parameter scales the page by the fraction specified.
+parameter scales the page by the factor specified.
If the optional minus sign is specified, the page number is relative to the end of
the document, instead of the start.
.PP
@@ -161,25 +153,13 @@ in which they appear on the command line.
.PP
Paper size names are converted to dimensions using
.BR paper (1).
-The output paper size, if set, is used (after scaling) to set the
+The output page size, if set, is used (after scaling) to set the
clipping path for each page.
-.SS "Exit status:"
-.TP
-0
-if OK,
-.TP
-1
-if arguments or options are incorrect, or there is some other problem
-starting up,
-.TP
-2
-if there is some problem during processing, typically an error reading or
-writing an input or output file.
.SH EXAMPLES
-To put two pages on one sheet of A4 paper, the pagespec to use is:
+To put two A or B series pages (e.g. A4 or B5) on one sheet of paper, the pagespec to use is:
.sp
.ce
-2:0L@.7(21cm,0)+1L@.7(21cm,14.85cm)
+2:0L@.7(1w,0)+1L@.7(1w,0.5h)
.sp
To select all of the odd pages in reverse order, use:
.sp
@@ -189,25 +169,27 @@ To select all of the odd pages in reverse order, use:
To re-arrange pages for printing 2-up booklets, use
.sp
.ce
-4:-3L@.7(21cm,0)+0L@.7(21cm,14.85cm)
+4:-3L@.7(1w,0h)+0L@.7(1w,0.5h)
.sp
for the front sides, and
.sp
.ce
-4:1L@.7(21cm,0)+-2L@.7(21cm,14.85cm)
+4:1L@.7(1w,0h)+-2L@.7(1w,0.5h)
+.sp
+for the reverse sides, or, for long-edge duplex printing, join the two specs thus:
+.sp
+.ce
+4:-3L@.7(1w,0h)+0L@.7(1w,0.5h),1L@.7(1w,0h)+-2L@.7(1w,0.5h)
+.sp
+For short-edge duplex, the incantation is:
+.sp
+.ce
+4:-3L@.7(1w,0h)+0L@.7(1w,0.5h),1R@.7(0w,0.5h)+-2R@.7(0w,1h)
.sp
-for the reverse sides (or join them with a comma for duplex printing).
+
.SH AUTHOR
-Written by Angus J. C. Duggan and Reuben Thomas.
+.nf
.SH BUGS
.B pstops
does not accept all DSC comments.
-.SH COPYRIGHT
-Copyright \(co Reuben Thomas 2017\-2023.
-Released under the GPL version 3, or (at your option) any later version.
-.SH TRADEMARKS
-.B PostScript
-is a trademark of Adobe Systems Incorporated.
-.SH "SEE ALSO"
-.BR psutils (1),
-.BR paper (1)
+.fi