SUMMARY : Trying to configure an HP41000 printer with escape sequences in the text file

From: Daniel Clar (Daniel.Clar@supelec.fr)
Date: Thu May 22 2003 - 12:49:06 EDT


After the following update I've got several answers :

>
> The original posting was :
> >
> > Hello Managers,
> >
> > I'm have an application running on one of my Tru64 boxes which generates
> > text files to print with escape sequences at the beginning and at the
> end
> > of
> > the files.
> >
> > Till now the files were sent to a printer on an OpenVMS system where the
> > file was processed by DCPS.
> >
> > I'm trying to avoid this transfer and to send the file directly to the
> > printer.
> >
> > I've used printconfig and modified slightly the lines in the printcap
> and
> > I'm able to print the test and other text files.
> >
> > But when I send one of my file with escape sequences I've only page with
> > squares.
> >
> > Is there a way to process correctly these files ?
> >
> > Thank you for your help.
>
> Thank you to :
>
> Davis, Alan [Davis@tessco.com]
>
> Check out the PCF subsystem : man pcfof
>
> Toni Harbaugh-Blackford [harbaugh@ncifcrf.gov]
>
> There is a utility 'lpspr' that will do this. But it is only part of the
> LPS printer control
> software package that *used* to be available from digital. I don't know
> if
> it is still available
> from HP or not.
>
> You can install the package and just put in fake entries for the printer.
> You can't just
> copy lpspr out of the installation package by itself, however, because
> lpspr
> looks for
> some of the printer configuration files that are placed in /etc by the
> installation script.
>
> 'lpspr' is the ONLY program that I have found that will do what you want.
>
> ur@minet.uni-jena.de
>
> As I understand this, the LPD or the "queueing mechanics" cuts
> off an ESC sequence a print job may have at the beginning.
> I couldn't see this with network print server (via LPD) but
> think this is a behaviour if the printer is connected to /dev/lp0
> (with "default" settings). Without the horrible hack I couldn't
> get all binaries to be printed. Event with no :if:, :of: and :xf:
> printcap entry parameters at all the leading ESC didn't get through.
> I thing there's a good reason for that - but my head is to small to
> see this ;-)
>
> -------------------------------------
>
> I've looked at pcfof and it's working with an old ln17ps printer but it
> doesn't recognize all the escape sequences.
>
> So do I have to build by myself a hplj4100dtn_a4.pcf file or does it exist
> somewhere?
>
Davis, Alan [Davis@tessco.com]

The pcf files are in /usr/lbin/pcf. The template.pcf file is an example with
comments on each section. If you can find the esc sequences that you need,
you can create your own pcf file. The hplj4000tn_a4.pcf may be a good place
to start.

You might also call HP support and see if the genius' over there have made
up pcf files for all the HP printers, since they're all one big, happy
family now.

Peter.Stern@weizmann.ac.il

There are pcf files for:
ln17.pcf, ln17_a4.pcf, ln17ps.pcf, ln17ps_a4.pcf
hplj4000tn.pcf, hplj4000tn_a4.pcf (and since these understand Duplex
they should work as well for the hplj4000dtn.

I have these as part of my standard installation (4.0f) although I don't
know which subset they came from. So if you have the pcf files in
/usr/lbin/pcf (mine are dated Apr 12 1999), they should be there.

And Ernie LaBonte [labonte@zk3.dec.com] who told me that it should work with
ppdof and help me a lot to succeed.

In fact some "old fashioned" escape sequences were understood by DCPS but no
more by ppdof. In putting in place the good PCL5 escape sequences, it's
running fine now.

Regards

Daniel



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:19 EDT