Computing.Net > Forums > Unix > Printing in Unix

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Printing in Unix

Reply to Message Icon

Name: narsman
Date: February 16, 2005 at 16:40:48 Pacific
OS: Windows NT
CPU/Ram: 2.0 Ghz 512 RAM
Comment:

Is there a way to print in "Landscape" format in Unix? I don't know if you need this info but here it is anyway:

/home/narsman% uname -a
OSF1 V4.0 1530 alpha

Thanks,
Narsman



Sponsored Link
Ads by Google

Response Number 1
Name: Jim Boothe
Date: February 17, 2005 at 08:42:11 Pacific
Reply:

"man lp" says you can specify options with -o:

-ooption
Specify a printer-dependent option. You can specify several printer options by repeating the -o option. For information about the options that are available for a printer supported on your system, see the interface script for the printer name in the /etc/lp/interface directory.

It does not list them because they will be different for different printer types. For HP lasers, I use:

-olandscape -ovsi5.45 -otl66 -ofp12 -ohsi9.5 -olm1

The printer driver will process each option by sending appropriate escape sequences to the printer. As a demo, rather than specify -olandscape, you could insert the following 5 characters at the beginning of line 1 of a file, then print it.

Esc & l 1 O

(Escapechar, ampersand, letter-l, digit-1, uppercase O)


0

Response Number 2
Name: narsman
Date: February 17, 2005 at 17:45:56 Pacific
Reply:

Hey Jim,

Thanks for the input. That worked!

narsman


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Printing in Unix

Page Count in UNIX www.computing.net/answers/unix/page-count-in-unix/6814.html

printing in Bsd www.computing.net/answers/unix/printing-in-bsd/4163.html

NEED TO PRINT HTML IN UNIX! HELP! www.computing.net/answers/unix/need-to-print-html-in-unix-help/2834.html