NAME

lpr_dup - Print a PostScript file in duplex mode


SYNOPSIS

lpr_dup [-h] [-f] [-s] [-o outfile] [-P|-d printer] [-t] [file1 [file2 [..]]]


DESCRIPTION

lpr_dup reads one or several PostScript files and inserts a PostScript duplex cookie before printing or writing them to a file. This code is an excerpt from my ps2book(1) code; the cookie is stolen from Akim Demaille's a2ps(1).

If no file is given, lpr_dup reads from stdin.


OPTIONS

-h, --help

Show usage overview

-f, --tofile

For each input file infile.ps, write output to infile_duplex.ps, i.e. use original file name with `_duplex' spliced in before the suffix.

-s, --simplex

Print file in simplex mode even on stupid printers that join adjacent jobs into one that is printed duplex. This is done by simply repeating each page, but shifted off limits.

-o file, --output=file

Write output to file (allows for only one input file).

-P printer, -d printer

Send output to printer.

-t, --tumble

Tumble every other page (suitable for short-edge binding or booklets). Default is to not tumble (appropriate for long-edge binding).


AUTHOR

Wolfgang Dobler <Wolfgang [.] Dobler [at] kis.uni-freiburg.de>


SEE ALSO

ps2book(1), a2ps(1)


BUGS

Certainly many, but hopefully compensating each other.