- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem printing landscape...
Categories
Company
Local Language
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
Forums
Discussions
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
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
тАО08-08-2006 03:15 AM
тАО08-08-2006 03:15 AM
Any ideas would be great.
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2006 03:18 AM
тАО08-08-2006 03:18 AM
Re: Problem printing landscape...
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2006 03:18 AM
тАО08-08-2006 03:18 AM
Re: Problem printing landscape...
lp -dmyprinter -o landscape myfile
Use a text editor to examine /var/spool/lp/interface/myprinter (and if this a network printer) also look at /var/spool/lp/interface/model.orig/myprinter to see the options that this interface file supports.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2006 03:20 AM
тАО08-08-2006 03:20 AM
Re: Problem printing landscape...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2006 03:21 AM
тАО08-08-2006 03:21 AM
Re: Problem printing landscape...
These are network printers...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2006 03:32 AM
тАО08-08-2006 03:32 AM
Re: Problem printing landscape...
Do i add it in this file?
If so, where?
THanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2006 03:35 AM
тАО08-08-2006 03:35 AM
Re: Problem printing landscape...
echo "Test" | lp -dmyprinter -o options
will print a list of available options or direct you to a man page for the same thing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2006 03:38 AM
тАО08-08-2006 03:38 AM
Re: Problem printing landscape...
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2006 03:39 AM
тАО08-08-2006 03:39 AM
Re: Problem printing landscape...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2006 03:45 AM
тАО08-08-2006 03:45 AM
Re: Problem printing landscape...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2006 03:54 AM
тАО08-08-2006 03:54 AM
SolutionThere is probably a line like:
orientation="def"
change it to:
orientation="l"
I would actually create another printer using hppi and then edit this printer's file in model.orig to set the default orientation to "l".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2006 04:16 AM
тАО08-08-2006 04:16 AM
Re: Problem printing landscape...
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2006 04:27 AM
тАО08-08-2006 04:27 AM
Re: Problem printing landscape...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2006 05:34 AM
тАО08-08-2006 05:34 AM
Re: Problem printing landscape...
I found it and really appreciate the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2006 08:17 AM
тАО08-08-2006 08:17 AM
Re: Problem printing landscape...
Now we have a spacing issue...
It seems that everyline has a space before and after it so it wont print everything on one page so,
by trying to "grow" i looked for spacing and changed it from
spacing="def"
to:
spacing="0"
However, this did not work....
Which variable do i change in order to make no spaces in the document and how would i know to use it?
For instance, def seems to be used for the meaning default however it being a string means that it doesn't have to be "defined"
If spacing="def" and "def" is not defined, exactly what does spacing equate to?
Thanks in advance...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2006 08:37 AM
тАО08-08-2006 08:37 AM
Re: Problem printing landscape...
1) Have your application output to a file (or if that's difficult, modify the interface file in the directory above model.orig where hpnpf is called and have it also output to a file) e.g. /var/tmp/myfile)
2) Now using your original unmodified print queue (or create a new one for this purpose so that you are starting from scratch),
lp -dmyprinter -o options /var/tmp/myfile
This will either print the supported options or direct you to a man page for the supported options.
3) Now try some of the options:
lp -dmyprinter -o landscape -o fp9 /var/tmp/myfile
adding, changing, the -o values until you get the desired output
4) Finally modify your model.orig/myprinter interface file to automatically assert these options.
5) Declare victory.
------------------------------------------
Fighting printers is one of those things that every admin has to do at some point so you might as well gird up your loins and do it now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2006 12:09 PM
тАО08-08-2006 12:09 PM
Re: Problem printing landscape...
First, create a file that has just the text you need to test the script on one page, two pages at most. Then rather than modifying the script, use the -ovsi and -ohsi values with the lp command. Once they look OK, then plug the values into your script. The hsi and vsi values are real numbers, that is, they can be fractional. Try values like -ovsi6.5 -ohsi7.5 and see what happens. A very small hsi will cause the letters to squish together and overlap, while a small vsi will make each line closer together (more lines per page).
There are general options like lines per page which can be frustrating to use. It's much easier to fine tune using the motion increments. Note that all lasewr printers will automatically eject the paper when any part of the next line extends below the bottom printable area. If your application tries to control the page length, you'll need to adjust line spacing (-ovsi) to keep lines from jumping to the next page.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2008 08:25 AM
тАО01-31-2008 08:25 AM