printing duplex with -o

Linda Hanigan hanfamily at earthlink.net
Sat Mar 14 13:06:20 PDT 2009


> Linda Hanigan wrote:
> >> Linda Hanigan wrote:
> >>> All of my programs create pcl and hp-gl. I am currently working on converting them to generate postscript. The machine I use for development has a HP laserjet 1320 and the production machines use a HP laserjet 4250. On the 1320 I can use lpr -o sides=two-sided-long-edge to turn on duplex, it is off by default. However the HP laserjet 4250 ignores the duplex option. If you turn on duplex as the default then it prints everything duplex otherwise nothing is duplex. Using pcl I can control duplex within the file. Any ideas on how to control if a file prints duplex on the 4250 when printing postscript files. I started the project because it allows the user to easily produce a pdf file to email by having the program use ps2pdf. However I really like the ease of using the x and y values to check page boundaries etc.
> >>> Any suggestions would be greatly appreciated.
> >>>           Linda
> >> The command I use for the LaserJet 4250 is
> >>
> >> lp -d QUEUE -n COPIES -h SERVER -o Duplex=DuplexNoTumble FILENAME
> >>
> >> The lpoptions command shows the possible options, e.g. lpoptions -h
> >> SERVER_IP -d QUEUE_NAME -l
> >>
> >> lists the following as the available options:
> >>
> >> Duplex/2-Sided Printing: *None DuplexNoTumble DuplexTumble
> >>
> >> Kev :o)
> >
> > Where does the -o Duplex= command come from. It isn't listed in my CUPS book and I don't see it listed in the online documentation. I will try it next week when I am on site with the 4250. However the Laserjet 1320 lpoptions gives the same Duplex options as you list and it does not print duplex if you use the -o Duplex=DuplexNoTumble or -o Duplex-DuplexTumble instead of the -o sides=two-sided-long-edge so I am not to hopeful.
>
> "Duplex" is the option from the PPD file.
>
> "sides" is the IPP option, which gets mapped to Duplex (or whatever
> the option is the PPD file), so if sides doesn't work, Duplex won't
> either.
>
> What driver are you using with the 4250?
>
> --
> ______________________________________________________________________
> Michael Sweet, Easy Software Products           mike at easysw dot com
I am fairly sure I used the ppd file that came with the printer, but I am not on site. I do have three different ppd files for the 4250 in the /etc/cups/ppd the hpijs version, and two different ones from Hewett Packard. Is there away to know what is installed from the command line? I have ssh access to a terminal login but no xwindows




More information about the cups mailing list