CUPS Problem in Linux (lp)
2 Attachment(s)
Hello Linux Questions!
First off I want to point out that I am somewhat new to Linux printing My Problem is I am converting a shell script from HP-UX that is printing two landscape pages per page on one portrait page like this: ------------------- ||---------------|| || || || Page 1 || || || ||---------------|| ||---------------|| || || || Page 2 || || || ||---------------|| ------------------- The HP-UX command is: lp -dPrinter -olandscape -ohalf -oduplex FileToPrint.txt I tried the following in Linux: lp -olandscape -ofit-to-page -oorientation-requested=3 -osides=two-sided-short-edge -opage-border=single -onumber-up=2 FileToPrint.txt But the result I am getting is: ------------------- ||---------------||--- || || | || Page 1 || | || || | ||---------------||--- ||---------------||--- || || | || Page 2 || | || || | ||---------------||--- ------------------- It almost as if it seems the Fit-to-page option isn't working.. Any advice? I've tried several variations but I keep getting the same result :( Thank you in advance |
Just a guess from me. Could this be a paper size issue perhaps? You could try specifying the media size explicitly eg
Code:
-o media=legal |
Ok that seemed to help, however I need it to print to letter sized paper. When I put -o media=letter. I have the same problem I began with. I also tried media=Custom.8.5x11in but still same issue
|
I'm not sure if it is case sensitive, it might need to be 'media=Letter'.
https://www.cups.org/doc/options.html I guess you could experiment with the custom dimensions a bit. Also, I'm not sure if the printer PPD DefaultPaperDimension and DefaultPageSize variables will influence the outcome at all, but worth checking I guess... Code:
grep "Default" /etc/cups/ppd/* |
I tried -o media=letter and same issue
I'll mess around with like -o cpi and stuff, but I wonder if there is an equivalent option to "half" in Unix in Linux |
The standard options are detailed in CUPS page I linked to. (Other printer-specific options that may be available can be got from the lpoptions command.)
Quote:
|
I tried:
lp -olandscape -omedia=letter -ofit-to-page -osides=two-sided-short-edge -opage-border=single -onumber-up=2 PET64024P.6889932 But same result. Really hoped that would work. I wonder if order of the options matters?? |
Quote:
|
All times are GMT -5. The time now is 04:35 PM. |