Operating System - HP-UX
1829467 Members
1607 Online
109991 Solutions
New Discussion

Re: Add form feed after printing in Jetadmin (D.06.21)

 
SOLVED
Go to solution
yc_2
Regular Advisor

Add form feed after printing in Jetadmin (D.06.21)

Hi,

I added a printer using "dumbplot model script for printer" in Jetadmin (D.06.21). The environment is as follows:
1) HP N-class
2) OS: HP-UX 11.00
3) Printronx printer
4) HP JetDirect print server

Problem: No form feed after printing

Question: How to add form feed after printing

Note: There is no problem in another K-class m/c running OS 10.20 using Jetadmin (D.01.08) which configured as dumb printer in the same JetDirect print server and printronix printer.


Any advise is appreciated.

Rgds,
YC
3 REPLIES 3
Andreas Voss
Honored Contributor
Solution

Re: Add form feed after printing in Jetadmin (D.06.21)

Hi,

if your printer is not a plotter (no HPGL usage)
you can modify the file:

/etc/lp/interface/model.orig/ as folows:

remove the line:
echo "IN;\n" # no HPGL command needed

change the line:
echo "PG;\n" # 'HPGL form feed'
to
echo "\014\c" # add form feed (\014 = ^L)

Regards
Robert S. White
Advisor

Re: Add form feed after printing in Jetadmin (D.06.21)

I had this same problem three years ago where I used to work, but it was a little more complicated. I needed form feeds, but I also needed to make sure that form feeds would NOT occure if the paper was already on the first line of a page and I needed to make sure that the printhead did not stair step down the page as a result of printing jobs from some IBM mainframes. One more thing, people wanted the fix ASAP!!!
The solution was to create a simple Perl script that would count the lines and put in form feeds at the end of every page and job if necessary. It even did a look ahead to see if a form feed was necessary (i.e. if this is line 54 is there a form feed on line 55 after the space?)
I configured printers as HP 4MV network printers and then replaced the 4MV model file in the /var/spool/lp/interface/model.orig with the Perl script that I had written. It worked great!
I eventually replaced the Perl script with a C program to make it a little faster.
This is one of those times that the HP solution to the problem (the dump printer file) just does not work.
If you are interested in the code, I will see if I can find it somewhere.

Computers are just external storage for my brain.
yc_2
Regular Advisor

Re: Add form feed after printing in Jetadmin (D.06.21)

Hi Robert,

Thanks for your time. As you said, people can't wait and the code suggested by Andreas had solved my problem.

Thanks for your concern.

YC