upside down duplexed page -- CUPS issue (was Re: ps problem)

Gary Aitken freebsd at dreamchaser.org
Mon Jan 27 04:51:57 UTC 2014


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
%


More information about the freebsd-questions mailing list