From owner-freebsd-questions@FreeBSD.ORG Sun Mar 5 02:56:05 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C4D416A420; Sun, 5 Mar 2006 02:56:05 +0000 (GMT) (envelope-from malcolm.kay@internode.on.net) Received: from ash25e.internode.on.net (ash25e.internode.on.net [203.16.214.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFA3543D45; Sun, 5 Mar 2006 02:56:04 +0000 (GMT) (envelope-from malcolm.kay@internode.on.net) Received: from alpha.home (ppp153-248.lns3.adl2.internode.on.net [59.167.153.248]) by ash25e.internode.on.net (8.13.5/8.13.5) with ESMTP id k252tg4i048025; Sun, 5 Mar 2006 13:25:42 +1030 (CST) (envelope-from malcolm.kay@internode.on.net) From: Malcolm Kay Organization: at home To: freebsd-questions@freebsd.org Date: Sun, 5 Mar 2006 13:25:41 +1030 User-Agent: KMail/1.8 References: <200603021727.31500.mi+mx@aldan.algebra.com> In-Reply-To: <200603021727.31500.mi+mx@aldan.algebra.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200603051325.41355.malcolm.kay@internode.on.net> Cc: Mikhail Teterin , questions@freebsd.org, rafan@infor.org Subject: Re: How to print in duplex mode? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Mar 2006 02:56:05 -0000 On Fri, 3 Mar 2006 08:57 am, Mikhail Teterin wrote: > Hello! > > I'm trying to use less paper by printing on both sides of each > sheet. > > The printer is capable of duplex printing, but all the > postcript I send to it ends up printed single-sided. > > The original PS is generated by a web-browser. I then try to > use enscript's pstops utility, but can't figure out its > page-specification language :-( Cups and psutils have pstops but I can't see any in enscript. Assuming you are talking about the version from psutils, then I believe this just orders or select pages for printing. To the best of me knowlege it is not capable of setting your printer into duplex mode. Duplex mode is usually controlled by some printer/manufacturer specific job control wrapper around the postscript such as HP's JPL. There may also be postscript commands which will switch to duplex but these are also likely to be somewhat printer specific. Briefly a generic solution for postscript printers is unlikely. But there are print systems that understand about specific printers and insert the job control wrapper. I believe the simplest way to achieve what you want is probably to install the Cups print system. Then something like: % lp -o sides=two-sided-long-edge filename should work. > > Would someone have a ready example: > > pstops 'MagickSpell' input.ps duplex.ps How is this mystical command line constructed? Is duplex.ps some library file you obtained from somewhere? If it contains PS commands to switch to duplex it would probably need to appear ahead of your input. Malcolm