Page 1 of 1

printing problem with 1.68 X11/Motif version (UNIX solaris)

Posted: Tue Mar 01, 2005 2:41 pm
by cyril
Hi,

When i print a picture, i obtain a postscript file which seems not good!
When i open it with ghostview i have only an "all black picture" not my
original picture...

Here is the header of postscript file generated by xnView:

> more -15 /var/tmp/aaaFlai7t
%!PS-Adobe-3.0 EPSF-3.0
%%Creator: (XnView)
%%Title: (/var/tmp/aaaFlai7t)
%%CreationDate: (Tue Mar 1 13:55:22 2005)
%%BoundingBox: 0 0 498 446
%%DocumentData: Clean7Bit
%%LanguageLevel: 1
%%Orientation: Portrait
%%PageOrder: Ascend
%%Pages: 1
%%EndComments

%%BeginDefaults
%%EndDefaults


Is this a real problem or not?

Because for me it's impossible to print something!
When i use the command: lp -d myPrinter
the bad(?) postscript file is generated and send to printer pool but never
printed as it is refused?!?

Thanks a lot for any help or information

Is print functionnality OK for others?

Pierre can you tell me what kind of postscript do you generate with xnView?

Same on HP-UX

Posted: Thu May 12, 2005 9:07 pm
by roman
I have the same Problem on HP-UX 11.00 and HP-UX 11.11.
Any help is apreciated.

Roman

Re: Same on HP-UX

Posted: Fri May 13, 2005 6:00 am
by xnview
roman wrote:I have the same Problem on HP-UX 11.00 and HP-UX 11.11.
Any help is apreciated.
The ps is generated in respect of their DPI information. Could you tell me the size of your picture in inch or cm? Or send me a sample?

Re: Same on HP-UX

Posted: Mon May 16, 2005 3:53 pm
by Guest
xnview wrote:
roman wrote:I have the same Problem on HP-UX 11.00 and HP-UX 11.11.
Any help is apreciated.
The ps is generated in respect of their DPI information. Could you tell me the size of your picture in inch or cm? Or send me a sample?
Tomorow i am back in office. I will send you some examples.

Regards
Roman

Re: Same on HP-UX

Posted: Thu Dec 22, 2005 5:59 pm
by Guest
xnview wrote:
roman wrote:I have the same Problem on HP-UX 11.00 and HP-UX 11.11.
Any help is apreciated.
The ps is generated in respect of their DPI information. Could you tell me the size of your picture in inch or cm? Or send me a sample?
The problem is still pending.
I can use any oicture/image i want. I can't print anything. The lights on the printer (Laserjet 5000 (postscript)) are flashing a few seconds, than: NOTHING. Nor error message no warning or anything.
If i save the image from xnview as a postscript-file i can't print it with "lp image.ps": Same behavior as before.
Ghostscript (v7) shows the files without problems.

Any hints?

Re: Same on HP-UX

Posted: Fri Dec 23, 2005 7:38 am
by xnview
Guest wrote:
xnview wrote:
roman wrote:I have the same Problem on HP-UX 11.00 and HP-UX 11.11.
Any help is apreciated.
The ps is generated in respect of their DPI information. Could you tell me the size of your picture in inch or cm? Or send me a sample?
The problem is still pending.
I can use any oicture/image i want. I can't print anything. The lights on the printer (Laserjet 5000 (postscript)) are flashing a few seconds, than: NOTHING. Nor error message no warning or anything.
If i save the image from xnview as a postscript-file i can't print it with "lp image.ps": Same behavior as before.
Ghostscript (v7) shows the files without problems.

Any hints?
Could you send me a ps file that works on your printer?

Posted: Wed Dec 28, 2005 11:31 am
by rtf
I have send an example-file to REMOVED.

Roman[/b]

Posted: Tue Jan 03, 2006 11:53 am
by rtf
:?
The problem is solved:
Under HP-UX 11.11 (11.0) there is no Postscript Level 3 driver for our printer (a HP 5100TN (PS) PS3 under Windo%s and other OS).
If i set up the printer under a linux-box (CUPS) with the apropriate driver (PS3) everything works like a charme.
F* HP.
Thanks for all help.

Roman

Posted: Mon Apr 10, 2006 8:56 am
by peter007
Printing in HP-UX (and every other 'ux for that matter) is possible when you let ghostscript do the work:

Don't let 'lp' handle the printjob directly, but send the printjob to a script like this (that's the way I did it, there may be other possibilities) :

Code: Select all

#!/usr/bin/ksh
/usr/local/bin/gs -sDEVICE=laserjet -dEPSFitPage -dBATCH -dNOPAUSE -sOutputFile=${1}.prn ${1}
lp -oraw ${1}.prn
rm ${1}.prn