Operating System - HP-UX
1849037 Members
5419 Online
104041 Solutions
New Discussion

Landscape printing from HPUX 11.23

 
SOLVED
Go to solution
Joe Bozen
Advisor

Landscape printing from HPUX 11.23

I am attemping to print a text file which is a 132 column report. When I issue a lp -d q_name -o landsscape f_name, it will print the file landscape but some of the information is cut off. I then tried to print the same file with the -o c option and now all 132 columns show up, however, in compress-mode, the font is so small that many of my users now have to break-out their reading glasses. Is there some other way to get landscaping to work. My printers are mostly HP laserjets and when using hppi to set them up, I chose net_lj4x as my script file.

thannks,

feeling-and-now-looking-old joe.
5 REPLIES 5
Rodney Hills
Honored Contributor
Solution

Re: Landscape printing from HPUX 11.23

I added the following into the interface file "/etc/lp/interface/model.orig/yourprinter". This allowed me to do a -olpr which prints landscape plus the correct sizing for 8.5 x 11 paper.

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

HTH

-- Rod Hills
There be dragons...
Robert-Jan Goossens
Honored Contributor

Re: Landscape printing from HPUX 11.23

Hi Joe,

Check this thread.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=133001

Best regards,
Robert-Jan
Sanjay_6
Honored Contributor

Re: Landscape printing from HPUX 11.23

Hi Joe,

Do you want to try

lp -o eolwrap -o landscape -dprinter_name file_to_print

Here printe_name is the name of the printer. eolwrap would wrap the line instead of cutting it off.

Your other choice is to change the font so that it prints landscape and still fits into one line.

Hope this helps.

Regds
Bill Hassell
Honored Contributor

Re: Landscape printing from HPUX 11.23

Can't have it both ways. If you need 132 columns of text on a single piece of paper then the font has to be reduced in size. Now the option -o c is a shorthand way to specify 16.667 font pitch and height. If you look at the man pages for network printers (ie, man net_lj5x) you'll see there are numerous options to specify the font pitch, lines per inch, etc. These reports were probably designed decades ago for green-bar 14" wide paper and now the users want the same thing on just 8" (or 11" in landscape).

The options you'll need to play with are:

-o height
-o lpi
-o hsi
-o vsi
-o fp

Note that smoe of the above options interact with others so you'll need to read the PCL reference manual on font specifications and then experiment with the best combination. Note that if this a pre-designed report with page headers, footers and page eject codes, it will take a fair amount of work to make it come out in an acceptable manner.



Bill Hassell, sysadmin
Joe Bozen
Advisor

Re: Landscape printing from HPUX 11.23

Well, I am happy to say that I am able to pitch those dorky glasses that just made me look funny.

I've decided to modify the model.orig files for my printers. All the columns now fit within the 132 column width and the font while its still a little small is 100% better than before. I will continue to tweek my settings.

thanks again to all the suggestions.

joe...