HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Custom Paper Sizes on HP 5M in UNIX
Operating System - HP-UX
1833777
Members
1935
Online
110063
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
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
06-07-2001 10:02 AM
06-07-2001 10:02 AM
Custom Paper Sizes on HP 5M in UNIX
I have an HP 5M printer that I want to use to print out checks. The check form is 8.5" X 7". At 6LPI, this works out to 42 LPP.
Since the printer does not have an option for 7" long forms, how can I get this type of form to print?
The best I could come up with was to set FORM=42 LINES, PAPER=LETTER, and print to a regular letter size page, but this "stretches" the check output to fit the whole page, resulting in a 5.5" check and 5.5" voucher stub.
Is there a better way, or can I get the 42 lines to print out in 6LPI on letter size paper and leave the bottom 4" blank?
My ASCII check template is included for demo purposes.
Since the printer does not have an option for 7" long forms, how can I get this type of form to print?
The best I could come up with was to set FORM=42 LINES, PAPER=LETTER, and print to a regular letter size page, but this "stretches" the check output to fit the whole page, resulting in a 5.5" check and 5.5" voucher stub.
Is there a better way, or can I get the 42 lines to print out in 6LPI on letter size paper and leave the bottom 4" blank?
My ASCII check template is included for demo purposes.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2001 10:56 AM
06-07-2001 10:56 AM
Re: Custom Paper Sizes on HP 5M in UNIX
Hi Steve,
I assume this is a JetDirect connected printer.
This does not appear to be too difficult.
I'll assume you are using 'myprinter'.
Do this first,
ls | lp -dmyprinter -ooptions
This will either print a page with all the options listed or direct you to a man page for the same information.
You will then choose which options you need when you invoke the lp command.
e.g. lp -dmyprinter -o portrait -o tm11 -o vsi5 -o lm3 myfile
(These -o options are all made up but you get the idea.).
If you are really doing strange stuff (and this does not appear to be) the you will need to edit the interface file and add/modify an appropriate option. The interface file will be located in /var/spool/lp/interface/model.orig/myprinter.
This should get you started, Clay
I assume this is a JetDirect connected printer.
This does not appear to be too difficult.
I'll assume you are using 'myprinter'.
Do this first,
ls | lp -dmyprinter -ooptions
This will either print a page with all the options listed or direct you to a man page for the same information.
You will then choose which options you need when you invoke the lp command.
e.g. lp -dmyprinter -o portrait -o tm11 -o vsi5 -o lm3 myfile
(These -o options are all made up but you get the idea.).
If you are really doing strange stuff (and this does not appear to be) the you will need to edit the interface file and add/modify an appropriate option. The interface file will be located in /var/spool/lp/interface/model.orig/myprinter.
This should get you started, Clay
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2001 11:52 AM
06-07-2001 11:52 AM
Re: Custom Paper Sizes on HP 5M in UNIX
Hi again,
I don't have a 5M but I did this on several HP models and this worked:
cat ${yourfile} | lp -dmyprinter -o tl42 -olpi6
you may need to add some -o lmnn and -o rmnn options to set the left & right margin.
I don't have a 5M but I did this on several HP models and this worked:
cat ${yourfile} | lp -dmyprinter -o tl42 -olpi6
you may need to add some -o lmnn and -o rmnn options to set the left & right margin.
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