- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- top margin option for lp
Operating System - HP-UX
1753407
Members
7133
Online
108793
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 03:25 PM
07-30-2001 03:25 PM
top margin option for lp
Does anyone know an option to specify a top margin when using "lp"? I have been reading a lot about the PCL5 printer language and I am not sure if I am on the right track. Thanks.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 05:20 PM
07-30-2001 05:20 PM
Re: top margin option for lp
Hi Debbie:
The answer to that question depends upon the 'interface' file for your particular printer.
cd /var/spool/lp/interface
There should be an interface file with the same name as your print queue. e.g. myprinter
Typically this script calls another script /var/spool/lp/interface/model.orig/myprinter.
If you examine these interface file, you will find many options that you can send to the lp command. For example, if your printer uses the net_lj4x script (it well be renamed 'myprinter') then top margin is set by -o tm3 to skip down 3 lines.
e.g.
lp -dmyprinter -tm3 myfile
If another printer model is used you may well use another option to do the same thing. The key is to examine the interface and see what options it supports. In the worst case, you can add your own -o option to set top margin. Many interface files support the the -o options option to list the supported options.
This should get you started, Clay
The answer to that question depends upon the 'interface' file for your particular printer.
cd /var/spool/lp/interface
There should be an interface file with the same name as your print queue. e.g. myprinter
Typically this script calls another script /var/spool/lp/interface/model.orig/myprinter.
If you examine these interface file, you will find many options that you can send to the lp command. For example, if your printer uses the net_lj4x script (it well be renamed 'myprinter') then top margin is set by -o tm3 to skip down 3 lines.
e.g.
lp -dmyprinter -tm3 myfile
If another printer model is used you may well use another option to do the same thing. The key is to examine the interface and see what options it supports. In the worst case, you can add your own -o option to set top margin. Many interface files support the the -o options option to list the supported options.
This should get you started, Clay
If it ain't broke, I can fix that.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP