Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jan 2014 22:16:40 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        Gary Aitken <freebsd@dreamchaser.org>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: upside down duplexed page -- CUPS issue  (was Re: ps problem)
Message-ID:  <alpine.BSF.2.00.1401262207270.33343@wonkity.com>
In-Reply-To: <52E5E5EA.3060101@dreamchaser.org>
References:  <52E55D4F.8060803@dreamchaser.org> <alpine.BSF.2.00.1401261331160.29800@wonkity.com> <52E5E5EA.3060101@dreamchaser.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1401262207270.33343>