HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: RE: Margins on printer output
Operating System - HP-UX
1834804
Members
2325
Online
110070
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
Forums
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
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
05-26-2001 05:36 AM
05-26-2001 05:36 AM
hi guys,
What should I do(on the OS level) to accomodate an 11" x 15" report size to be printed on a A4 paper size.
jok
What should I do(on the OS level) to accomodate an 11" x 15" report size to be printed on a A4 paper size.
jok
Excelence is not an act but a hobby
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2001 07:30 AM
05-26-2001 07:30 AM
Re: RE: Margins on printer output
Hi Jok
On the OS level what you are looking forward is compression of the characters or resucing spaces between then so that you can accomodate bigger size print out on a smaller paper . Essentially for formatting I think it will cumbersome on the OS level , but there are some tools or third party software which can handle this for you . Try downloading LP Plus and installing it on the server , it should help you .Go to http://www.stokely.com/unix.sysadm.resources/printing.html#uprint
for more these products.
Manoj Srivastava
On the OS level what you are looking forward is compression of the characters or resucing spaces between then so that you can accomodate bigger size print out on a smaller paper . Essentially for formatting I think it will cumbersome on the OS level , but there are some tools or third party software which can handle this for you . Try downloading LP Plus and installing it on the server , it should help you .Go to http://www.stokely.com/unix.sysadm.resources/printing.html#uprint
for more these products.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2001 07:59 AM
05-26-2001 07:59 AM
Solution
Hi Jok,
You didn't mention printer types so I have to be very general. In some cases, you can't because the printer itself doesn't support the needed functionality but in most cases you can do this.
cd to the /var/spool/lp/interface directory.
For each queue (e.g. myprinter1) there will be an interface file called myprinter1 and in many cases there will be another interface of the same name in a directory called model.orig located just below /var/spool/lp/interface.
The convention is that lp invokes /var/spool/lp/interface/myprinter1 to actually print the file. The interface is almost always
a shell script but can be any executable as long as the proper conventions are followed.
All you have to do is modify the existing interface file to add options that you want.
In many cases, paper size, font, boxes, etc. are already in the interface but sometimes you have to create them yourself.
You then invoke lp as you would normally but with additional -o options.
e.g. lp -dmyprinter1 -opaperxx myfile
You would have modified myprinter1's interface file(s) to handle the newly created 'paperxx' option. You will need some knowledge of the printers language (PCL,postscript,etc.) to make these changes.
Man lp and lpadmin for details but above all
examine the interface files themselves - the functionality may already be there. Most interface files have an option to print all the other options on a banner page (usually invoke lp with a -ooptions argument).
Hope this gets you started, Clay
You didn't mention printer types so I have to be very general. In some cases, you can't because the printer itself doesn't support the needed functionality but in most cases you can do this.
cd to the /var/spool/lp/interface directory.
For each queue (e.g. myprinter1) there will be an interface file called myprinter1 and in many cases there will be another interface of the same name in a directory called model.orig located just below /var/spool/lp/interface.
The convention is that lp invokes /var/spool/lp/interface/myprinter1 to actually print the file. The interface is almost always
a shell script but can be any executable as long as the proper conventions are followed.
All you have to do is modify the existing interface file to add options that you want.
In many cases, paper size, font, boxes, etc. are already in the interface but sometimes you have to create them yourself.
You then invoke lp as you would normally but with additional -o options.
e.g. lp -dmyprinter1 -opaperxx myfile
You would have modified myprinter1's interface file(s) to handle the newly created 'paperxx' option. You will need some knowledge of the printers language (PCL,postscript,etc.) to make these changes.
Man lp and lpadmin for details but above all
examine the interface files themselves - the functionality may already be there. Most interface files have an option to print all the other options on a banner page (usually invoke lp with a -ooptions argument).
Hope this gets 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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP