[cups.general] DuplexTumble Problem

Johannes Meixner jsmeix at suse.de
Tue May 25 03:08:52 PDT 2004


Hello,

On May 19 11:41 Dirk Baack wrote (shortened):
> ... file.ps is ... (edited by psbook and pstops)

When PostScript was processed by the psutils such problems are known.
I am no PostScript expert to explain the exact reason (something
like wrong or missing DSC comments).

The solution is not to use the psutils but the CUPS standard options
whenever possible.

If you must use the psutils then the following is a ugly workaround
which should work for most PostScript printers but your particular
PostScript printer may need other PostScript code snippets to
activate duplex or duplex-tumble:

Create two PostScript code snippet files duplexnotumble.ps
---------------------------------------------------------------
%!PS
statusdict /setduplexmode known
{statusdict begin true setduplexmode end} if {} pop
---------------------------------------------------------------
and duplextumble.ps:
---------------------------------------------------------------
%!PS
statusdict /setduplexmode known
{statusdict begin true setduplexmode end} if {} pop
statusdict /settumble known
{statusdict begin true settumble end} if {} pop
---------------------------------------------------------------

Send this files before the real printing data to activate duplex without
or with tumble like in the following examples:

  echo -e "1\f2\f3\f4\f5\f6\f7\f" \
  | a2ps -1 -o - \
  | psnup -4 \
  | cat duplexnotumble.ps - \
  | lp -d <queue>

to print 4 pages on one sheet with duplex

and

  echo -e "1\f2\f3\f4\f5\f6\f7\f" \
  | a2ps -1 -o - \
  | psnup -2 \
  | cat duplextumble.ps - \
  | lp -d <queue>

to print 2 pages per sheet with duplex and tumble.


Regards
Johannes Meixner
-- 
SUSE LINUX AG, Maxfeldstrasse 5                 Mail: jsmeix at suse.de
90409 Nuernberg, Germany                    WWW: http://www.suse.de/





More information about the cups mailing list