From owner-freebsd-questions@FreeBSD.ORG Mon Jan 27 04:51:57 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 20E6F97F for ; Mon, 27 Jan 2014 04:51:57 +0000 (UTC) Received: from nightmare.dreamchaser.org (nightmare.dreamchaser.org [12.32.44.142]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C46FF1EBB for ; Mon, 27 Jan 2014 04:51:56 +0000 (UTC) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [12.32.36.73]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id s0R4pssg012820; Sun, 26 Jan 2014 21:51:54 -0700 (MST) (envelope-from freebsd@dreamchaser.org) Message-ID: <52E5E5EA.3060101@dreamchaser.org> Date: Sun, 26 Jan 2014 21:51:54 -0700 From: Gary Aitken User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130730 Thunderbird/17.0.7 MIME-Version: 1.0 To: FreeBSD Mailing List Subject: upside down duplexed page -- CUPS issue (was Re: ps problem) References: <52E55D4F.8060803@dreamchaser.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [12.32.36.65]); Sun, 26 Jan 2014 21:51:54 -0700 (MST) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: freebsd@dreamchaser.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jan 2014 04:51:57 -0000 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. 2. If I print it using /usr/local/bin/lpr duplex.ps it comes out with the duplexed page upside down. 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. 5. If printed to a pdf file and /usr/local/bin/lpr is used on the pdf, duplexed pages are upside down. ================ duplex.ps =============== %!PS-Adobe-3.0 %cupsJobTicket: media=Letter sides=two-sided-long-edge %%BoundingBox: 36 36 576 756 %%Pages: 2 %%LanguageLevel: 2 %%Requirements: duplex %%DocumentNeededResources: font Times-Roman %%EndComments %%BeginDefaults %%PageOrientation: Portrait 0.0 setgray /Times-Roman findfont 60 scalefont setfont %%EndDefaults %%BeginSetup %%BeginFeature: *Duplex DuplexNoTumble << /Duplex true /Tumble false >> setpagedevice %%EndFeature %%EndSetup %%Page: (Front Page (1)) 1 % Page 1 text newpath 100 200 moveto (Page 1 Duplex.ps) show showpage %%Page: (Back Page (2)) 2 % Page 2 text newpath 100 200 moveto (Page 2 Duplex.ps) show showpage %%EOF %