landscape printing

Sai Ganesamoorthi (sai@paranet.com)
Thu, 05 Feb 1998 13:38:09 -0600

Hi

This is my Original question:
>Hi,
>
>Is there an option to print landscape using lp from Solaris 2.5.1?
>
>Will summarise.

Thanks for all the people who responded.

Here are the answers that worked for me
For ascii jobs to print postscript u can use
genscript

usr/lib/lp/postscript/postprint -p landscape <filename> | lp

enscript -r

cat filename | postprint (options and so on ) | lp

man mp

/usr/lib/lp/postscript/postprint -pland [filename] | lp -d [printer]

postprint -pland <filename> | lp

lp -o landscape -d printer file1 file2 file3

/usr/openwin/bin/mp -lo should work great

We use a little script that allows us to print landscape on our HP 4
printers.

#!/bin/csh
if ($#argv > 0) then
cat /usr/local/bin/landscape.ps $argv[1] | lp
endif

and /usr/local/bin/landscape.ps has the postscript codes for landscape
l1O0p16.67h8.5v0s0b0T

This works great for any type file(postscript, PCL)
mp -lo file | lpr

/usr/lib/lp/postscript/postprint -l45 -pland | lpr

lp -olandscape
and
lp -oeolwrap -olandscape

Note, syntax is important.
I think if you use "-o landscape -o eolwrap"
it will do one but not both options.

Thank You to all those who responded.

-sai