Operating System - HP-UX
1827435 Members
4701 Online
109965 Solutions
New Discussion

Re: Generic landscape compressed printer script

 
rajiv mehta
New Member

Generic landscape compressed printer script

Hello

I am looking for a landscape compressed scrpit. I have a generic portrait compressed script already.

Any help would be appreciated.
6 REPLIES 6
V. Nyga
Honored Contributor

Re: Generic landscape compressed printer script

Hi,

can't you use your portrait script?
Option is -olandscape

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Steve Steel
Honored Contributor

Re: Generic landscape compressed printer script

hi


Indeed

Normal script

-olandscape or -oportrait

-oc

Its compressed

Else you use a script - check for the landscape option and put it on by default

if [ "$orientation" = "l" ] # If orientation is landscape

Thus set orientation="l" instead of
orientation="def"


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Rodney Hills
Honored Contributor

Re: Generic landscape compressed printer script

I added the following after the "landscape)" clause in the printer driver script-

lpr) # print in landscape 66lpp/132cols
orientation="l"
pitch="c"
textlen="66"
lpi="def"
hsi="9"
vsi="5";;


HTH

-- Rod Hills
There be dragons...
Rodney Hills
Honored Contributor

Re: Generic landscape compressed printer script

Addendum-

To use my new option would be-

lp -olpr myfile

-- Rod Hills
There be dragons...
rajiv mehta
New Member

Re: Generic landscape compressed printer script

I chamged the orientation to "l" in the script and it failed.

I have attached the landscape script.
V. Nyga
Honored Contributor

Re: Generic landscape compressed printer script

Hi

from your script:

portrait) # print in portrait mode
orientation="l";;
landscape) # print in landscape mode
orientation="l";;

You should check it

V.
*** Say 'Thanks' with Kudos ***