Operating System - HP-UX
1820378 Members
3069 Online
109623 Solutions
New Discussion юеВ

setting the font, paper size etc.. in hpux

 
Yaboto
Super Advisor

setting the font, paper size etc.. in hpux

Hi,

Please show me all the configuration files in hpux that would enable me to set the fonts; the form feed;caption; paper size etc ... for a Tally line printer already configured as a remote printer using SAM.

Regards,
Mawuena
2 REPLIES 2
OldSchool
Honored Contributor

Re: setting the font, paper size etc.. in hpux

if it truly is configured as a remote printed, that's not going to happen.

the remote print protocol (BSD printing) doesn't support such. take a look at /var/spool/lp/model/rmodel script for available options.

what can be done (maybe) is to define queue(s) on the server that the Tally is connected to. Configure the queues (on that server) with the default options you want for the above, then set up corresponding queues on the HP, each "pointed" at the queue that uses the options you want. You would then select your lp destination based on what options you wanted.....ugly but should work.

Tim Nelson
Honored Contributor

Re: setting the font, paper size etc.. in hpux

Most options are supplied on the line with the lp command. e.g. lp -o landscape

The available options can typically be found in the printer driver file used to configure a direct connect or lan based printer. /etc/lp/interface/Printer_name or /etc/lp/interface/model.orig/Printer_name.

Templates can be found in /usr/lib/lp/model/

If this is a remote printer the driver file is on the remote server but the template file on the local host just might give you an idea of what options are available.

If this is a direct connect or lan based printer ( i.e. one with a jetdirect interface ) then you can create multiple printer queues with hard coded options in the interface file. ( e.g. PRT1L, hardcode landscan in the interface, PRT1C, hardcode compressed pitch in the interface )

Typically the application handles the formating of the document to print and can be configured there.