System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem printing postscript file

SOLVED
Go to solution
Alx GB
Occasional Visitor

Problem printing postscript file

Hello I have a problem printing a postscript file:
* when i put the -onb option don't print anything
* when i leave it without the -onb option print the banner
* i try setting the banner option off at the printer definition, it just don't print

This command works ok (print without banner, but is a txt file):
lp -s -onb -dmyprinter textfile.txt

This commands works but print the banner page:
lp -dmyprinter -opostscript psfile.ps
request id is myprinter-2714 (1 file)

lp -dmyprinter psfile.ps
request id is myprinter-2720 (1 file)


This command just don't print anything:
lp -dmyprinter -onb psfile.ps
request id is myprinter-2721 (1 file)


Here is my configuration

HP-UX B.11.00

Printer controler JetDirect Version E.10.34
****************************************************************
*****] ****
**** ] **** JetDirect Printer Installer for UNIX
**** ]]]]] ]]]]] **** Version E.10.34
**** ] ] ] ] ****
**** ] ] ]]]]] **** M A I N M E N U
***** ] ****
****** ] **** User: (root) OS: (HP-UX B.11.00)
I N V E N T
****************************************************************

1) Spooler Administration (super-user only)


2) JetDirect Configuration (super-user only)
- TCP/IP configurable parameters

3) Diagnostics:
- diagnose printing problems


?) Help q) Quit



This is the printer configuration
Options: Current Settings:
-------- -----------------
1) Default Queue [NO]
2) Status Log [OFF]
3) Network Address [myprinter.abc.com]
4) Additional printer changes . . .

Modelscript used for this queue is net_lj3x

Options: Current Settings:
-------- -----------------
1) Job Recovery [ON]
2) True End-of-Job [N/A]
3) Banner Page [OFF]
4) Default Printing Language [N/A]
5) PostScript Level [N/A]
6) Banner Tray [default]
7) Banner Paper Size [default]
8) Duplex print [N/A]

Im using a HP Laserjet 4250n



Thanks in advance
3 REPLIES
OldSchool
Honored Contributor
Solution

Re: Problem printing postscript file

"Im using a HP Laserjet 4250n"


you know there is a model script *for* this printer, right?

http://www.hp.com/pond/modelscripts/index2.html

and look for net_lj4250.sh.Z

it may, or may not, fix your issue.
also, you may need to check the printer setup to see if its configured to auto-sense / auto-switch to based on data sent.
Patrick Wallek
Honored Contributor

Re: Problem printing postscript file

The key is this:

5) PostScript Level [N/A]

Your printer apparently does not support PostScript, so printing a postscript file will likely not work.

>>* when i put the -onb option don't print anything
>>* i try setting the banner option off at the printer definition, it just don't print

Right. Since it can't print the file, and you specify no banner, then there's nothing to print.

>>* when i leave it without the -onb option print the banner

Again, correct. The printer can't print the postscript file, but you are asking for a banner, so the banner it the only thing you get.

In order to print a postscript file, your printer MUST support postscript.
Alx GB
Occasional Visitor

Re: Problem printing postscript file

Thanks for the quick response.

OldSchool:
right now im changing the printer to use the model script and i will post the results

Patrick:
when i leave it without the -onb option print the banner, and also the postscript file (psfile.ps)