Operating System - HP-UX
1753701 Members
5078 Online
108799 Solutions
New Discussion юеВ

Margins on printer output

 
jok llamera
Advisor

Margins on printer output

hi guys,

I have an HP printer used as line printer for my HP9000 server. I want to know if its posible to configure paper size/margins on the OS level.

jok
Excelence is not an act but a hobby
2 REPLIES 2
Wieslaw Krajewski
Honored Contributor

Re: Margins on printer output

Hi,

Try:

cd /etc/spool/interface

In this directory there is a file with name as your printer (queue) name. This is script which is run when printing
file on the printer. Many comments in this script are commonly defined, and among them those to establish margins and so on. You can edit this file to have permanent configuration.

Me, I give left margin value directly in the command, ex.

lp -ddestination -olm6 file

to print with left margin equal to 6.

Rgds.
Permanent training makes master
James R. Ferguson
Acclaimed Contributor

Re: Margins on printer output

Hi:

Another option is to use 'pr' and pipe its output to 'lp'. For instance:

# pr -o16 -l80 | lp

This would (o)ffset the printing to the right by 16 characters and set the number of (l)ines per page to 80.

...JRF...