Operating System - HP-UX
1836955 Members
2445 Online
110112 Solutions
New Discussion

I want to stop printer filters

 
Burhan I. Koni
Advisor

I want to stop printer filters

Hi
I have a problem in printing arabic text reports from HP-UX 11i to a network printer HPLaserjet 4050 with flash memory installed to arabize the arabic fonts(third party product).
I get some garbage in addition to the report. the support from the vendor of the flash memory says that the printer must be as a standard unix. printer definition called line dump printer, ASCII printer type or orher. Local filtering should be diabled.
I define my printes using SAM. I have no idea about local filtering or line dump printer and ASCII type.

PLEASE HELP
Burhan
5 REPLIES 5
RAC_1
Honored Contributor

Re: I want to stop printer filters

Is this printer defined as network printer or remote printer?? If network printer you can set it to use dumb as model script. (-m dumb option)

Also you can define the printer as remote printer, that way any options (lp -o options) passed onto printer prove useless.

Anil
There is no substitute to HARDWORK
Bill Hassell
Honored Contributor

Re: I want to stop printer filters

You probably configured the printer through SAM and used the JetDirect interface in the printer (SAM calls this a network printer). SAM identified the printer and assigned the standard printer script which will send appropriate escape sequences for setting up PCL printing.

You flash memory plugin sounds like it is more than just a simple font and must process all of the printer codes. In that case, you must print the Arabic text with the -oraw option. This turns off simple ASCII text translation where LF is converted to CR+LF. If this does not help, then you can replace the printer's model script with the "dumb" model from /usr/lib/lp/model. Assuming your printer is named lj4050 then:

cp /usr/lib/lp/model/dumb /etc/interface/model.orig/lj4050

Now try printing an Arabic document. If that works, then lj4050 will be your Arabic printer and you can create another print queue for ASCII files using SAM or addqueue and the normal printer model script.


Bill Hassell, sysadmin
Burhan I. Koni
Advisor

Re: I want to stop printer filters

Dear all
the printer is defined as jetdirect. I could not find /etc/interface/model.orig or /etc/interface. instead I found /etc/lp/interface and /var/spool/lp/interface and both are empty.

BR
Burhan
Bill Hassell
Honored Contributor

Re: I want to stop printer filters

Sorry, that was a typo. The correct directory is indeed /etc/lp/interface/model.orig. The /var/spool/lp/interface location is not a directory but a symbolic link to the 'real' directory /etc/lp/interface. Since there are no entries in this directory, the printer was never added as a "network printer", but as a "remote printer" (SAM's terminology). While the JetDirect card will work as a remote printer, access to all the -o options are non-functional.

To add the printer using the (recommended) JetDirect software, you can run SAM and add the printer as a network printer. Then you'll have the printer's script in /etc/lp/interface/model.orig. Or you can use the same tool that SAM uses (/opt/hpnpl/bin/hppi) to add the printer.


Bill Hassell, sysadmin
Steve Steel
Honored Contributor

Re: I want to stop printer filters

Hi

cp /etc/lp/interface/model.orig/printer /tmp/
vi /etc/lp/interface/model.orig/printer

:1,$d
:r /opt/hpnpl/sh/dumbplot_printer
:wq

Try that

You can always get the orig back


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)