Operating System - HP-UX
1833873 Members
1786 Online
110063 Solutions
New Discussion

Re: PCL5.nloo model script

 
Nivi
Advisor

PCL5.nloo model script

Hi,

I would like to know some information regarding the model script files available in HP UX 11.11.

I read about PCL5.nloo model script file in the link http://docs.hp.com/en/5187-0701/ch09s02.html. It says PCL5.nloo is enhanced to print text file containing 2-byte and 4-byte characters.

I used this model script for printing pcl. i gave a text file as input for this model script. It just added header and footer for pcl and the input is taken as it is. It did not do any pcl conversion of the input file. Also i agve jpg and bmp and .ps as input files to this model script, since my printer is pcl it did not understand the file an dprinted as it is.

1. so is it possible to print image or any other (.ps) files using this model script?
2. Is there any other model script available in HPUX which will allow me to print image files.
3. will the model script available by default in HPUX, is capable of doing actual pcl conversion.

can you please help me find the answers for the above question. if possible can oyu also provide me the link where i can get more information on this.

please help

thanks,


9 REPLIES 9

Re: PCL5.nloo model script

So can you actually share the commands you ran to do this?

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Nivi
Advisor

Re: PCL5.nloo model script

Execute the below command from the particular directory and get the output file and print it to the printer.

PCL5.nloo 1 root file 1 "A4" inputfile > outputfile

lp -d printqueuename outputfile

This i sthe command i used to execute the model script..

Re: PCL5.nloo model script

Well I don't think thats correct...

You should use SAM or the lpadmin command to add a new printer queue that specifically uses the model script - not just call the model script yourself.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Nivi
Advisor

Re: PCL5.nloo model script

Hi,

Thanks for the reply.

I am using a non-hp printer. So if I try to add a print queue using SAM - HP Jet direct, the below error message appears
"No response from "
try to ping .
(since HP jet direct protocol is not present in my printer)

Could you please let me know how to add a print queue with model script using lpadmin command.

Thanks,
Nivi
Advisor

Re: PCL5.nloo model script

Hi,
Can anybody please help me with the answers.

My Query which is posted:
>>>>I would like to know some information regarding the model script files available in HP UX 11.11.

I read about PCL5.nloo model script file in the link http://docs.hp.com/en/5187-0701/ch09s02.html. It says PCL5.nloo is enhanced to print text file containing 2-byte and 4-byte characters.

I used this model script for printing pcl. i gave a text file as input for this model script. It just added header and footer for pcl and the input is taken as it is. It did not do any pcl conversion of the input file. Also i agve jpg and bmp and .ps as input files to this model script, since my printer is pcl it did not understand the file an dprinted as it is.

1. so is it possible to print image or any other (.ps) files using this model script?
2. Is there any other model script available in HPUX which will allow me to print image files.
3. will the model script available by default in HPUX, is capable of doing actual pcl conversion.

can you please help me find the answers for the above question. if possible can oyu also provide me the link where i can get more information on this.

Please help,

Thanks..
OldSchool
Honored Contributor

Re: PCL5.nloo model script

"
I used this model script for printing pcl. i gave a text file as input for this model script. It just added header and footer for pcl and the input is taken as it is. It did not do any pcl conversion of the input file. Also i agve jpg and bmp and .ps as input files to this model script, since my printer is pcl it did not understand the file an dprinted as it is.

1. so is it possible to print image or any other (.ps) files using this model script?"

**** It prints text files to PCL printers (see #2).

2. Is there any other model script available in HPUX which will allow me to print image files."

*** The printer model scripts *don't* (usually) do conversions, they setup the printers to print the already-processed files.

3. will the model script available by default in HPUX, is capable of doing actual pcl conversion.

(see #2)

can you please help me find the answers for the above question. if possible can oyu also provide me the link where i can get more information on this.


You might look at ghostscript for conversions...I don't know which formats is supports however.
OldSchool
Honored Contributor

Re: PCL5.nloo model script

if you aren't installing a "jet-direct" capable printer, then it should be installed as a remote printer.

if it is a network printer, then it should have answered the ping anyway, although it may not respond to the "community name" stuff properly.

some non-hp printers function quite nicely w/ hpux provided you do have a jet-direct interface.

It might be helpful if you provided some information as to what you were trying to accomplish, as opposed to what you want to do.


Bill Hassell
Honored Contributor

Re: PCL5.nloo model script

> 1. so is it possible to print image or any other (.ps) files using this model script?

No.

> 2. Is there any other model script available in HPUX which will allow me to print image files.

No.

> 3. will the model script available by default in HPUX, is capable of doing actual pcl conversion.

PCL is nothing more than ASCII with optional enhancements. So ASCII is the base for PCL. But your questions all center on taking some binary data such as .jpg, and .bmp and converting them to a dot image suitable for for your printer. This is a very complex task and not something that any printer script will accomplish. The nloo is *ONLY* used to convert highly complex character sets such as Asian and display the appropriate character form.

Unlike PCs where there are many, many programs to convert graphics into printer-compatible codes, HP-UX just sends the file to the printer with a few optional before-and-after codes. You need to download Ghostscript if you want to convert Postscript files to PCL, and ImageMagick for all the picture formats:

http://hpux.connect.org.uk/hppd/hpux/X11/Viewers/ImageMagick-6.4.4/


Bill Hassell, sysadmin
Nivi
Advisor

Re: PCL5.nloo model script

Hi,

thanks to all.

Thanks for the help.
I wanted to know what basically a model script will do. Your reply was very useful hence closing this thread.