Print Problem in UNIX. Need to know the option to specify the print paper size

Hi,

Could any one please let me know what is the option
available in UNIX to print by specifying the paper size?
We are using Unix11i. I could n't see any option specified in the 'lp' command to print the report by specifying the size of the paper. It would be of great help to me, if anyone can help me in this regard.

thanks in advance,
Karthik.

Here is what I can tell you. They are many options available for lp such as :

-onobanner
-otrayX
-olegal
-olandscape
-oc
-otmXX
-olpix
etc.

For ie., let's say you want to print using tray3 for special paper and remove the banner from the top.

lp -dprinter -onobanner -otray3

We use all HP printer and are able send request to the printer using -olegal option and don't have to tell what tray cause the printer knows where the legal paper is:

lp -dprinter -onobanner -olegal

We also use option -olpix for special sized paper so we are able to change number of line per inch. You can also look at -otmXX for margins.