1840491 Members
2345 Online
110165 Solutions
New Discussion

Re: Is this possible?

 
Managed Services
Frequent Advisor

Is this possible?

Is it possible to send a printer a configuration string to set specific margin and font sizes. The printer in question is an all singing, dancing Ricoh 1045 photocopier/printer combination.
Any pointers greatly appreciated.
Thanks in Advance.
C.
6 REPLIES 6
Stefan Farrelly
Honored Contributor

Re: Is this possible?

It is possible. All you need is a driver from Ricoh for HP-UX which can send the proper control codes to the printer depending on what you want. You wont get a driver from HP and Im unsure if Ricoh will do one for HP-UX.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Paula J Frazer-Campbell
Honored Contributor

Re: Is this possible?

Hi

Also check the printers emulation - it may emulate HP.

Paula
If you can spell SysAdmin then you is one - anon
Cheryl Griffin
Honored Contributor

Re: Is this possible?

There may be other suggestions as well if you try the printers forums at http://bizforums.itrc.hp.com/cm/FamilyHome/1,,412,00.html

Cheryl
"Downtime is a Crime."
Shannon Petry
Honored Contributor

Re: Is this possible?

Looking into doing this for an HP and Tektronics printer brought me lots of grief, so I wish you luck. I'll give you the pointers on where I got with mine to get you hopefully pointed in the correct direction.

The HP printer used PJL for commands. I had to rewrite the LP set to be wrappers and add the PJL to the prints where needed. Getting the PJL commands from HP was as hard as removing wisdom teath.

Tektronics required postscript commands for commands. They shipped me all their commands with proof of ownership, and were really helpfull. It still required a rewrite of the LP commands to add headers where needed.

One day I'll be really insane, and merge the two systems.... well, maybe not.

Shannon
Microsoft. When do you want a virus today?
Bill Hassell
Honored Contributor

Re: Is this possible?

Printers in HP-UX do not have drivers. Instead, the SysV lp subsystem uses printer scripts to perform custom settings. Since there is no script for the Ricoh, you'll be using the dumb model or template script and that is where you create your custom strings.

No need to wrapper the lp command in this case. Now, if you want to control options like fonts and margins, you'll need to add options to the script stored in /etc/lp/interface under the name of the printer. Examples of how -o options are handled are found in /usr/lib/lp/model where one of the early HP model scripts will be fairly readable (ie, laserjet). You'll need the Ricoh tech manual to put in the proper codes. You can edit the script while the lp spooler is running.


Bill Hassell, sysadmin
Thomas M. Williams_1
Frequent Advisor

Re: Is this possible?

Yes this is possible. We have been doing this for years. Hopefully this fits your scenario. We have created script files called PRNs. Below is a sample PRN file called "prn17hp" which we use to set an HP laser printer to 17cpi. The "^[" is the sequence. You would need to find the specific codes to manipulate the device to your liking. The "^[[5i" and "^[[4i" are common codes to open the printer port (LPT) on your PC. You will need to replace the other codes to fit your needs as stated above.

#!/bin/ksh
echo "^[[5i" # Printer on
echo "^[&k2S\c" # 17 pitch
cat ${1} # Print file
echo "^[R\c" # Reset printer
echo "^[[4i" # Printer off
I Think the Clock is Slow ...