Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

force document to print portrait

Status
Not open for further replies.
Jun 2, 2004
24
US
rather than having the printer use a landscape format for a file that may exceed some recommended width when using the lpr command, can I get it to print in portrait? I tried using col with the -b flag and that did not help.
Also, is there some method of forcing the text to wrap for the printer rather than cutting it off at that specified point? Thanks!

lpr -P<printer> file
 
You could try using the 'lp' command instead:

lp -d <dest> -o "portrait" <file>

The -o options can be printer specific (look at printer control options of your printer.

HTH


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top