From owner-freebsd-questions@FreeBSD.ORG Mon Jan 27 05:16:44 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7784AE2D for ; Mon, 27 Jan 2014 05:16:44 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 11F7D1FEA for ; Mon, 27 Jan 2014 05:16:43 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.7/8.14.7) with ESMTP id s0R5GeY8033402; Sun, 26 Jan 2014 22:16:40 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.7/8.14.7/Submit) with ESMTP id s0R5GeOr033399; Sun, 26 Jan 2014 22:16:40 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Sun, 26 Jan 2014 22:16:40 -0700 (MST) From: Warren Block To: Gary Aitken Subject: Re: upside down duplexed page -- CUPS issue (was Re: ps problem) In-Reply-To: <52E5E5EA.3060101@dreamchaser.org> Message-ID: References: <52E55D4F.8060803@dreamchaser.org> <52E5E5EA.3060101@dreamchaser.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Sun, 26 Jan 2014 22:16:40 -0700 (MST) Cc: FreeBSD Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jan 2014 05:16:44 -0000 On Sun, 26 Jan 2014, Gary Aitken wrote: > I need a sanity check, please, someone with cups and openoffice installed. > In my case I'm using an HP OfficeJet Pro 8500 tied to the > HP Photosmart P1100 ppd file, which seems to be the recommendation. > > the fbsd implementation of cups installs an lpr command in > /usr/local/bin > the system supplies one in > /usr/bin > > The normal path puts /usr/bin ahead of /usr/local/bin > > 1. If I print the file below using > /usr/bin/lpr duplex.ps > it comes out duplexed properly. The base system lpr and lpd do not mess with the incoming files unless you set up a filter. > 2. If I print it using > /usr/local/bin/lpr duplex.ps > it comes out with the duplexed page upside down. I would suspect this is because CUPS has modified the file based on the PPD. Redirecting the final output to a file might be possible, but I don't use CUPS and can't help with that. > I'd appreciate it if someone could verify whether or not they see > similar behavior. > > If I create a simple 2 page document in openoffice, > when printing from openoffice, I see the following: > > 3. If printed duplexed direct from OO, duplexed pages are upside down. > 4. If printed to a pdf file and /usr/bin/lpr is used on the pdf, > no duplexing occurs -- I get two separate sheets. Again mostly guessing, but the duplexing information, being device-specific, is probably removed when the PDF is created. > 5. If printed to a pdf file and /usr/local/bin/lpr is used on the pdf, > duplexed pages are upside down. And that duplexing works here would be due to CUPS adding the device-specific information when a job is printed.